]> git.karo-electronics.de Git - karo-tx-linux.git/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>
Mon, 23 Jun 2014 18:12:01 +0000 (14:12 -0400)
commit206a81c18401c0cde6e579164f752c4b147324ce
tree9a8eae6e89068e372ace1ac0a13af5c76b09faf9
parent7171511eaec5bf23fb06078f59784a3a0626b38f
lzo: properly check for overruns

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/lzo/lzo1x_decompress_safe.c