[RTEMS Project] #4016: shm_unlink uses uninitialized obj_err on successful return from _POSIX_Shm_Get_by_name

RTEMS trac trac at rtems.org
Sun Jun 28 00:18:51 UTC 2020


#4016: shm_unlink uses uninitialized obj_err on successful return from
_POSIX_Shm_Get_by_name
---------------------------+--------------------
  Reporter:  Kinsey Moore  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  normal        |  Milestone:  5.1
 Component:  admin         |    Version:  5
  Severity:  normal        |   Keywords:
Blocked By:                |   Blocking:
---------------------------+--------------------
 In the nominal case checked by spsysinit01, obj_err in shm_unlink is
 unmodified when _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 this test was passing by virtue of the stack having the
 right value on it in most cases.

--
Ticket URL: <http://devel.rtems.org/ticket/4016>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list