]> git.itanic.dy.fi Git - linux-stable/commit
lzo: properly check for overruns
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jun 2014 05:00:53 +0000 (22:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jun 2014 19:15:42 +0000 (15:15 -0400)
commitb13fdebb805e4a4c7130f7405d7d3ddd3eeb2a77
treee6bbcff51989af077d3b21e8df305f929db23207
parent74c68519ea6c2ef5e1b5a0a588647048865e200d
lzo: properly check for overruns

commit 206a81c18401c0cde6e579164f752c4b147324ce upstream.

The lzo decompressor can, if given some really crazy data, possibly
overrun some variable types.  Modify the checking logic to properly
detect overruns before they happen.

Reported-by: "Don A. Bailey" <donb@securitymouse.com>
Tested-by: "Don A. Bailey" <donb@securitymouse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/lzo/lzo1x_decompress_safe.c