#4016: shm_unlink uses uninitialized obj_err on successful return from _POSIX_Shm_Get_by_name --------------------------+-------------------------------------------- Reporter: Kinsey Moore | Owner: Kinsey Moore <kinsey.moore@…> Type: defect | Status: closed Priority: normal | Milestone: 5.1 Component: posix | Version: 5 Severity: normal | Resolution: fixed Keywords: | Blocked By: Blocking: | --------------------------+--------------------------------------------
Comment (by Kinsey Moore <kinsey.moore@…>): In [changeset:"14749c4515d760948c62ffdaee5cc9248cf32933/rtems" 14749c45/rtems]: {{{ #!CommitTicketReference repository="rtems" revision="14749c4515d760948c62ffdaee5cc9248cf32933" posix: Only check shm_unlink obj_err if necessary In the nominal case checked by spsysinit01, obj_err is unmodified if _POSIX_Shm_Get_by_name returns non-NULL. In the case of shm_unlink, this means an uninitialized value is passed into the switch and it appears tests using it were passing by virtue of the stack having the right value on it in most cases. This now checks obj_err only if _POSIX_Shm_Get_by_name returns NULL. Close #4016 }}} -- Ticket URL: <http://devel.rtems.org/ticket/4016#comment:8> RTEMS Project <http://www.rtems.org/> RTEMS Project
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs