Patches to make GNU gzip and BusyBox gzip produce identical compression results

Daniel Edgecumbe email at esotericnonsense.com
Mon Sep 2 21:43:36 UTC 2019


A discussion with eschwartz on the Arch Linux freenode IRC channel led 
to the discovery of some minor implementation details lacking in the 
BusyBox gzip applet which can cause output to differ both across GNU 
gzip and BusyBox, and different versions of BusyBox.

Please find attached three seperate patches for the solution of these 
issues.

I've also pushed the branch at
https://git.esotericnonsense.com/busybox.git/

This is a re-submission as my original e-mail was bounced due to not 
being an ML member.

-- 
Daniel Edgecumbe | esotericnonsense
Kalix NO, Sverige | +358 46 584 2810
email at esotericnonsense.com | https://esotericnonsense.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gzip-default-level-with-ENABLE_FEATURE_GZIP_LEVELS-s.patch
Type: text/x-patch
Size: 986 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20190902/6e88fa97/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-gzip-set-compression-flags-correctly-as-per-standard.patch
Type: text/x-patch
Size: 3031 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20190902/6e88fa97/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-gzip-set-default-compression-level-to-6-when-CONFIG_.patch
Type: text/x-patch
Size: 2200 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20190902/6e88fa97/attachment-0002.bin>


More information about the busybox mailing list