[Toybox] Zcat fix

Mike Moreton Mike.Moreton at frontier-silicon.com
Fri Sep 23 05:20:41 PDT 2016


Zcat seems to be broken - running:

./gzip -c /bin/bash | ./gunzip -c > bash.out && cmp /bin/bash bash.out && echo OK

produces CRC errors and an output file that is massively too big.

I think the problem is in the routine that writes the output bytes - very simple patch attached that seems to fix the problem.




Mike Moreton
Software Project Leader
Frontier Silicon Ltd

D +44 1223 497780

www.frontier-silicon.com <http://www.frontier-silicon.com/>
Ashwell Point, Babraham Road, Sawston, Cambridge, CB22 3LJ, UK

Frontier Silicon Ltd is a Toumaz Group company (the Group also includes Frontier Microsystems), registered in England and Wales - company no. 4213838. Registered address: 137 Euston Road, London, NW1 2AA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-error-in-writing-output-that-was-causing-zcat-to.patch
Type: application/octet-stream
Size: 709 bytes
Desc: 0001-Fix-error-in-writing-output-that-was-causing-zcat-to.patch
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160923/22142842/attachment-0003.obj>


More information about the Toybox mailing list