Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

zlib fails on large files #1929

Closed
tuxychandru opened this Issue · 1 comment

2 participants

Chandra Sekar S isaacs
Chandra Sekar S

Create a 695 MB file with,

dd if=/dev/urandom of=test.iso bs=1024 count=$((1024*695))

Compress it with,

var zlib = require('zlib');

var gzip = zlib.createGzip();
var fs = require('fs');
var inp = fs.createReadStream('test.iso');
var out = fs.createWriteStream('out.iso.gz');

inp.pipe(gzip).pipe(out);

The compressed file is corrupted.

isaacs
Owner

Thanks for the report and test case.

Investigating.

isaacs isaacs was assigned
isaacs isaacs referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
isaacs isaacs closed this in 4c5751b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.