Skip to content

Commit e4aa7ca

Browse files
Alain KnaffH. Peter Anvin
authored andcommitted
bzip2/lzma: don't stop search at first unconfigured compression
Impact: Bugfix, avoids kernels which build but panic on boot Fix a bug in decompress.c : only scanned until the first non-configured compressor (with disastrous result especially if that was gzip.) Signed-off-by: Alain Knaff <alain@knaff.lu> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
1 parent ee28758 commit e4aa7ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/decompress.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ decompress_fn decompress_method(const unsigned char *inbuf, int len,
4343
if (len < 2)
4444
return NULL; /* Need at least this much... */
4545

46-
for (cf = compressed_formats; cf->decompressor; cf++) {
46+
for (cf = compressed_formats; cf->name; cf++) {
4747
if (!memcmp(inbuf, cf->magic, 2))
4848
break;
4949

0 commit comments

Comments
 (0)