lz4: ensure length does not wrap
Note: this is the same as 206204a in
linux-git.

Given some pathologically compressed data, lz4 could possibly decide to
wrap a few internal variables, causing unknown things to happen.  Catch
this before the wrapping happens and abort the decompression.

Reported-by: "Don A. Bailey" <donb@securitymouse.com>
Signed-off-by: Holger Schurig <holgerschurig@gmail.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ecb1dc0 commit 918782bb0fbdc5c7b58f9a25411ba7ac5975122e
@Holger Schurig Holger Schurig authored on 1 Jul 2014
Sascha Hauer committed on 2 Jul 2014
Showing 1 changed file
View
lib/lz4/lz4_decompress.c