2009-01-15 13:26:34

by Etienne Lorrain

[permalink] [raw]
Subject: [GIT PULL] bzip2/lzma kernel compression

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.