RTEMS | cpukit/libfs/jffs2: Prevent memory corruption due to corrupted data (!123)

Sebastian Huber (@sebhub) gitlab at rtems.org
Thu Aug 29 00:23:39 UTC 2024




Sebastian Huber started a new discussion on cpukit/libfs/src/jffs2/src/compr_rtime.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/123#note_111639

 >  
 >  		positions[value]=outpos;
 >  		if (repeat) {
 > +#ifdef __rtems__
 > +			if ((repeat + outpos) >= destlen) {

Why do we need the () around the + here and not four lines below?

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/123#note_111639
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/20240829/0acff676/attachment.htm>


More information about the bugs mailing list