RTEMS | JFFS2 rtime decompression bug (#5072)

Kinsey Moore (@opticron) gitlab at rtems.org
Mon Jul 22 18:35:15 UTC 2024



Kinsey Moore created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5072

Assignee: Kinsey Moore

## Summary
The rtime decompressor appears to have a bug when handling corrupted/bad compressed data. The repeat while loop doesn't verify it has space to write out data when handling repeats.

This was observed to cause memory corruption when using multiple JFFS2 partitions set to use the same compression buffer (which is itself a bug/incorrect configuration).

## Steps to reproduce
Configure a system with multiple JFFS2 filesystems configured to use the same rtime compression buffer and access them from multiple threads. RAM and flash corruption occur quickly.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5072
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/20240722/631fdfd1/attachment.htm>


More information about the bugs mailing list