This repository has been archived by the owner. It is now read-only.

zlib fails on large files #1929

cskr opened this Issue Oct 24, 2011 · 1 comment


None yet
2 participants

cskr commented Oct 24, 2011

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');


The compressed file is corrupted.

isaacs commented Oct 24, 2011

Thanks for the report and test case.


@ghost ghost assigned isaacs Oct 24, 2011

@isaacs isaacs closed this in 4c5751b Oct 24, 2011

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.