RTEMS | cpukit/libfs/jffs2: Prevent memory corruption due to corrupted data (!123)
Joel Sherrill (@joel)
gitlab at rtems.org
Thu Aug 29 15:20:21 UTC 2024
Joel Sherrill commented on a discussion on cpukit/libfs/src/jffs2/src/compr_rtime.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/123#note_111658
>
> positions[value]=outpos;
> if (repeat) {
> +#ifdef __rtems__
> + if ((repeat + outpos) >= destlen) {
What's the jffs2 style for this if there is an example?
Personally, I like the parentheses around the addition. Makes it very clear what you intended.
But follow the existing jffs2 style overrides us.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/123#note_111658
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/24a9d008/attachment.htm>
More information about the bugs
mailing list