linux-sg2042/lib/lz4
Greg Kroah-Hartman 4148c1f67a lz4: fix another possible overrun
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-06-27 11:21:07 -07:00
..
Makefile lib: add lz4 compressor module 2013-07-09 10:33:30 -07:00
lz4_compress.c lib/lz4: correct the LZ4 license 2013-08-23 09:51:22 -07:00
lz4_decompress.c lz4: fix another possible overrun 2014-06-27 11:21:07 -07:00
lz4defs.h lib: add lz4 compressor module 2013-07-09 10:33:30 -07:00
lz4hc_compress.c lib/lz4: correct the LZ4 license 2013-08-23 09:51:22 -07:00