RTEMS | dosfs: Avoid NULL pointer dereference UB (!1348)

Yang Zhang (@Chloe) gitlab at rtems.org
Wed Jul 22 06:54:56 UTC 2026




Yang Zhang commented on a discussion on cpukit/libfs/src/dosfs/msdos_conv_default.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1348#note_155066

 >      super->buffer.size = sizeof( self->buffer );
 >    }
 >  
 > -  return &self->super;
 > +  return self != NULL ? &self->super : NULL;

Thanks for the suggestion! I've updated the logic to avoid duplicate check.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1348#note_155066
You're receiving this email because of your account on gitlab.rtems.org. Unsubscribe from this thread: https://gitlab.rtems.org/-/sent_notifications/4-8410d1tcg239hczrq18rjkgei-1d/unsubscribe | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | Help: https://gitlab.rtems.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260722/96a21604/attachment.htm>


More information about the bugs mailing list