RTEMS | cpukit/posix: Fix uninitialized read in sem_open (CID 1667263) (!952)

MITHILESH MATTAPALLI (@mithileshm) gitlab at rtems.org
Fri Feb 6 13:44:12 UTC 2026




MITHILESH MATTAPALLI commented on a discussion on cpukit/posix/src/semopen.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/952#note_141998

 >     */
 >    mode_t mode RTEMS_UNUSED;
 >  
 > -  va_list                   arg;
 > -  unsigned int              value = 0;
 > -  POSIX_Semaphore_Control  *the_semaphore;
 > -  size_t                    name_len;
 > -  Objects_Get_by_name_error error;
 > -  sem_t                    *sem;
 > +  va_list                    arg;
 > +  unsigned int               value = 0;
 > +  POSIX_Semaphore_Control   *the_semaphore;
 > +  size_t                     name_len = 0;
 > +  Objects_Get_by_name_error  error;
 > +  sem_t                     *sem;

Fixed. Removed the accidental formatting change added.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/952#note_141998
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260206/0b67fce8/attachment-0001.htm>


More information about the bugs mailing list