Comments (2)
hi, i found it is a bug when extra filed is less then 4 bytes:
when u parsing entity with function structures.readFileEntity
u caculate the extra as follow
fileEntry.extraField = parseExtraFields(buffer.slice(index, index + fileEntry.extraFieldLength));
which will do as bellow, for the extra field witch is less then 4 bytes, it will throw error as issue title
`
var parseExtraFields = function (buffer) {
var index = 0;
var fields = {};
while (index < buffer.length) {
var header = buffer.readUInt16LE(index);
var length = buffer.readUInt16LE(index + 2);
var field = buffer.slice(index + 4, index + 4 + length);
// TODO: Actually do something with this data
fields[header] = field;
index += length + 4;
}
return fields;
};
`
from decompress-zip.
It looks like you are using an out of date version. Could you try it on the same zip with version 0.0.3?
from decompress-zip.
Related Issues (20)
- Process out of memory extracting material design icons HOT 5
- [Error: Offset is out of bounds] HOT 1
- Strip option causing error HOT 7
- Bump graceful-fs dependency
- progess only called for files but fileCount contains also dirs.
- Extract file zip contains folder with special nam not create folder in linux
- Extract the zip file takes too long.
- EMFILE: too many open files HOT 2
- How to solve large files unzip error log Array buffer allocation failed
- can't call the unzipper.extract from callback of unzipper.on('list', cb) HOT 1
- the timestamp of file is changed
- unwanted folders
- Arbitrary File Overwrite
- Cannot use decompress-zip "Miss ./zlib_bindings" HOT 1
- Error: EEXIST: file already exists, mkdir '/Users/ljj/Desktop/unziplib/temp/import/db/db4c4Zvw' HOT 1
- Symlink issue on MacOS HOT 1
- Error: Possibly unsupported ZIP platform type
- close or destroy when in progress
- decompressing a unix zip fails if external file attribute is 0 HOT 3
- Decompressing on MacOS node v17.0.1 creates file that fails to execute
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from decompress-zip.