[RTEMS Project] #4016: shm_unlink uses uninitialized obj_err on successful return from _POSIX_Shm_Get_by_name
RTEMS trac
trac at rtems.org
Tue Aug 11 12:48:51 UTC 2020
#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: |
--------------------------+--------------------------------------------
Changes (by Kinsey Moore <kinsey.moore@…>):
* owner: (none) => Kinsey Moore <kinsey.moore@…>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"e95c00a79e891674ac4d9a9e43156abf3637463a/rtems"
e95c00a7/rtems]:
{{{
#!CommitTicketReference repository="rtems"
revision="e95c00a79e891674ac4d9a9e43156abf3637463a"
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:7>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list