Skip to content

cpukit/libfs/jffs2: Prevent memory corruption due to corrupted data

Kinsey Moore requested to merge opticron/rtems:rtime-decompress-fix into main

Summary

cpukit/libfs/jffs2: Prevent memory corruption due to corrupted data

The rtime decompression routine does not fully check bounds during the entirety of the decompression pass and can corrupt memory outside the decompression buffer if the compressed data is corrupted. This adds the required check to prevent this failure mode.

Updates #5072 (closed)

Merge request reports