diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-01-13 02:01:21 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 17:03:24 +0100 |
commit | fb7fa589fd3ecc212fabd7867a4ecc3b175260c1 (patch) | |
tree | 785e193aaaf9537136140084f8cf2f5ea0d1fb9f /scripts/Makefile.lib | |
parent | Decompressors: check input size in decompress_unlzo.c (diff) | |
download | linux-fb7fa589fd3ecc212fabd7867a4ecc3b175260c1.tar.xz linux-fb7fa589fd3ecc212fabd7867a4ecc3b175260c1.zip |
Decompressors: fix callback-to-callback mode in decompress_unlzo.c
Callback-to-callback decompression mode is used for initrd (not
initramfs). The LZO wrapper is broken for this use case for two reasons:
- The argument validation is needlessly too strict by
requiring that "posp" is non-NULL when "fill" is non-NULL.
- The buffer handling code didn't work at all for this
use case.
I tested with LZO-compressed kernel, initramfs, initrd, and corrupt
(truncated) initramfs and initrd images.
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/Makefile.lib')
0 files changed, 0 insertions, 0 deletions