提交 e4aa7ca5 编写于 作者: A Alain Knaff 提交者: H. Peter Anvin

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: NAlain Knaff <alain@knaff.lu>
Signed-off-by: NH. Peter Anvin <hpa@linux.intel.com>
上级 ee287587
......@@ -43,7 +43,7 @@ decompress_fn decompress_method(const unsigned char *inbuf, int len,
if (len < 2)
return NULL; /* Need at least this much... */
for (cf = compressed_formats; cf->decompressor; cf++) {
for (cf = compressed_formats; cf->name; cf++) {
if (!memcmp(inbuf, cf->magic, 2))
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册