Skip to content
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

Closed
AlessioQ opened this issue Jul 26, 2013 · 2 comments
Closed

Bad CRC on some binary files #57

AlessioQ opened this issue Jul 26, 2013 · 2 comments

Comments

@AlessioQ
Copy link

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:
input_image3

@townxelliot
Copy link

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:

  inflating: components/canvas/background.png  
  error:  invalid compressed data to inflate
 bad CRC 00000000  (should be 63759466)

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:

background

@acl0056
Copy link

acl0056 commented Oct 25, 2013

I have the same issue with a PNG file. It is always this file:

f94bf470-1966-11e3-9d81-d8cbe859dbf5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants