[Bug 1698] New: Questionable assumptions in rtems_libio_set_private_env().

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Fri Sep 3 07:21:38 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1698

           Summary: Questionable assumptions in
                    rtems_libio_set_private_env().
           Product: RTEMS
           Version: HEAD
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: sebastian.huber at embedded-brains.de


/*  Clone the pathlocs. In contrast to most other code we must _not_
   *  free the original locs because what we are trying to do here is forking
   *  off clones. The reason is a pathloc can be allocated by the file system
   *  and needs to be freed when deleting the environment.
   *
   *  NOTE: Evaluation should always work so only check status when debug
   *        is enabled.
   */

  CHECK_STATUS( rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0) );
  rtems_filesystem_root    = loc;

  CHECK_STATUS( rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0) );
  rtems_filesystem_current = loc;

These functions may return an error status, e.g. due to memory shortage.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list