[GIT PULL] bzip2/lzma kernel compression

From: Etienne Lorrain
Date: Thu Jan 15 2009 - 08:26:35 EST


lib/decompress_inflate.c:
+ /* skip over asciz filename */
+ if (zbuf[3] & 0x8) {
+ while (strm->next_in[0])
+ strm->next_in++;
+ strm->next_in++;
+ }
+ strm->avail_in = len - (strm->next_in - zbuf);

How about also allowing a GZIP comment (as specs) if (zbuf[3] & 0x10) ?
To test, generating a GZIP with comment is easily done by my gzcopy:
gzcopy -a="a comment" in.gz out.gz
found in this other bootloader, and can be downloaded at:
http://www.mirrorservice.org/sites/download.sourceforge.net/pub/sourceforge/g/gu/gujin/install-2.4.tar.gz/install/gzcopy?extract=true

Etienne.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/