Skip to contentSkip to conversation

bzip2/lzma kernel compression

GIT PULL Etienne Lorrain 1 participant 1 message Jan 15, 2009

lore
Share & tools
lore
#0 lore raw

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.