RTEMS | cpukit/libfs/jffs2: Prevent memory corruption due to corrupted data (!123)
Kinsey Moore (@opticron)
gitlab at rtems.org
Thu Aug 29 15:07:46 UTC 2024
Kinsey Moore commented on a discussion on cpukit/libfs/src/jffs2/src/compr_rtime.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/123#note_111657
>
> positions[value]=outpos;
> if (repeat) {
> +#ifdef __rtems__
> + if ((repeat + outpos) >= destlen) {
Technically, it doesn't. I tend to enforce readability when mixing arithmetic operators and conditional operators, but I can remove the extra parentheses if you prefer.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/123#note_111657
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/e7d0ae94/attachment.htm>
More information about the bugs
mailing list