You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got the following error with v0.5.15. It was working until 0.5.14
Error: ADM-ZIP: Descriptor data is malformed at Object.DESCRIPTOR_FAULTY (/usr/src/app/node_modules/adm-zip/util/errors.js:56:16) at crc32OK (/usr/src/app/node_modules/adm-zip/zipEntry.js:62:36) at decompress (/usr/src/app/node_modules/adm-zip/zipEntry.js:121:26) at Object.getData (/usr/src/app/node_modules/adm-zip/zipEntry.js:320:24) at /usr/src/app/node_modules/adm-zip/adm-zip.js:762:37 at Array.forEach (<anonymous>) at Object.extractAllTo (/usr/src/app/node_modules/adm-zip/adm-zip.js:756:26) at download_and_unzip (/usr/src/app/processes/utils/batch.utils.js:64:9) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async module.exports.getProcessedFile (/usr/src/app/processes/utils/batch.utils.js:79:37)
The following data integrity check seems to be failing
The weird thing is that this happens only on some systems.
For me it does not happen but for a colleague of mine it does and we're both running the same amd-zip powered code with the same adm-zip version.
So there may also be a race condition or some other aspect involved that makes the same zip file fail the check on one system while it always passes on another.
Activity
devland commentedon Aug 20, 2024
The weird thing is that this happens only on some systems.
For me it does not happen but for a colleague of mine it does and we're both running the same amd-zip powered code with the same adm-zip version.
So there may also be a race condition or some other aspect involved that makes the same zip file fail the check on one system while it always passes on another.
pin adm-zip to v0.5.14 as a temporary fix for cthackers/adm-zip#533
devland commentedon Feb 20, 2025
We managed to reproduce this again on v0.5.16 and on master branch as of writing this (1cd32f7).
To reproduce locally run
extractAllToon the below attached zip file.descriptorMalformed.zip
The error is generated by this line:
adm-zip/zipEntry.js
Line 62 in 1cd32f7
when
descriptor.sizedoes not match_centralHeader.size.For our example the values are
0and57respectively.As a workaround you can simply comment out the error on line 62 in
zipEntry.js.sdg9670f commentedon Jul 3, 2025
I think validating descriptors should be optional.
cthackers commentedon Jul 10, 2026
Fixed