mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
cpukit/jffs2/rtime: Fix off-by-one error in decompression check
Closes #5072
This commit is contained in:
1 parent
e14a740a99
commit
abaea2b798
1 file changed
+1
-1
@@ -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