-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad CRC on some binary files #57
Comments
I've seen the same error in my environment, where a png file is deflated and ends up with a bad CRC, corrupting the zip file. This is on 64bit Fedora Linux with node v0.11.3. The error message I get when unzipping the file containing this image is:
adm-zip version is 0.4.3 (installed via npm). I also tried upgrading to 0b0b8fe and saw the same error. Note that the resulting zip file is readable by adm-zip and other tools (you can see the file list), but the packed files can't be extracted properly (my archive tool did unpack the file but it was black). Below is the image which causes this issue: |
adm-zip deflate some binary file with a bad crc.
This files can't be inflate with 3th part software (as 7z).
I'm using windows 7 64 bit.
node v0.10.13
This is my simple script:
var AdmZip = require('adm-zip');
var zip = new AdmZip();
zip.addLocalFile("./input_image3.jpg", "/");
zip.writeZip("test.zip");
and this the jpg that i use for the test:
The text was updated successfully, but these errors were encountered: