9
0
Fork 0
barebox/lib/lz4
Holger Schurig 9d6df51542 lz4: fix another possible overrun
Note: this is the same as 4148c1f67abf823099b2d7db6851e4aea407f5ee in
linux-git.

There is one other possible overrun in the lz4 code as implemented by
Linux at this point in time (which differs from the upstream lz4
codebase, but will get synced at in a future kernel release.)  As
pointed out by Don, we also need to check the overflow in the data
itself.

While we are at it, replace the odd error return value with just a
"simple" -1 value as the return value is never used for anything other
than a basic "did this work or not" check.

Reported-by: "Don A. Bailey" <donb@securitymouse.com>
Reported-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Holger Schurig <holgerschurig@gmail.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-07-02 08:19:45 +02:00
..
Makefile lib: Add support for LZ4-compressed kernel 2013-07-16 08:24:30 +02:00
lz4_decompress.c lz4: fix another possible overrun 2014-07-02 08:19:45 +02:00
lz4defs.h decompressor: Add LZ4 decompressor module 2013-07-16 08:24:30 +02:00