[RTEMS Project] #4877: sptests/spsysinit01 sem_open call only has 3 parameters with O_CREAT flag

RTEMS trac trac at rtems.org
Mon Mar 13 09:26:17 UTC 2023


#4877: sptests/spsysinit01 sem_open call only has 3 parameters with O_CREAT flag
-----------------------------------+--------------------
  Reporter:  Lucian-Raul Silistru  |      Owner:  joel@…
      Type:  defect                |     Status:  new
  Priority:  normal                |  Milestone:
 Component:  test                  |    Version:  5
  Severity:  normal                |   Keywords:
Blocked By:                        |   Blocking:
-----------------------------------+--------------------
 When calling sem_open with the O_CREAT flag the sem_open function requires
 4 parameters. It will:
 value = va_arg(args, unsigned int);
 so the "value" argument will be randomly chosen.

 sem_open can fail if the random value is not a valid semaphore value,
 failing the test.

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


More information about the bugs mailing list