mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
d2c37f7389
(cherry pick from commit 4148c1f67abf823099b2d7db6851e4aea407f5ee) 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> Bug: 24810447 Change-Id: If06c4719c0b6db3e3e9b693b50fa2218ed1f5078 |
||
---|---|---|
.. | ||
lz4_compress.c | ||
lz4_decompress.c | ||
lz4defs.h | ||
lz4hc_compress.c | ||
Makefile |