lkml.org 
[lkml]   [2009]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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.





\
 
 \ /
  Last update: 2009-01-15 14:29    [W:3.368 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site