summaryrefslogtreecommitdiffstats
path: root/scripts/xz_wrap.sh
diff options
context:
space:
mode:
authorLasse Collin2011-01-13 02:01:21 +0100
committerLinus Torvalds2011-01-13 17:03:24 +0100
commit5a3f81a7029daff5f08aad146f4c4510e790da49 (patch)
tree08f0dfe372ebb5db518de2e80c4fb1d7c81f70be /scripts/xz_wrap.sh
parentDecompressors: check for write errors in decompress_unlzo.c (diff)
downloadkernel-qcow2-linux-5a3f81a7029daff5f08aad146f4c4510e790da49.tar.gz
kernel-qcow2-linux-5a3f81a7029daff5f08aad146f4c4510e790da49.tar.xz
kernel-qcow2-linux-5a3f81a7029daff5f08aad146f4c4510e790da49.zip
Decompressors: check input size in decompress_unlzo.c
The code assumes that the input is valid and not truncated. Add checks to avoid reading past the end of the input buffer. Change the type of "skip" from u8 to int to fix a possible integer overflow. Signed-off-by: Lasse Collin <lasse.collin@tukaani.org> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Alain Knaff <alain@knaff.lu> Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com> Cc: Phillip Lougher <phillip@lougher.demon.co.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/xz_wrap.sh')
0 files changed, 0 insertions, 0 deletions