mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-03 04:18:08 +08:00
cpukit/jffs2/rtime: Fix off-by-one error in decompression check
Closes #5072
This commit is contained in:
@@ -114,7 +114,7 @@ int rtems_jffs2_compressor_rtime_decompress(
|
||||
positions[value]=outpos;
|
||||
if (repeat) {
|
||||
#ifdef __rtems__
|
||||
if ((repeat + outpos) >= destlen) {
|
||||
if ((repeat + outpos) > destlen) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user