antelle / node-stream-zip

node.js library for fast reading of large ZIPs
Other
447 stars 63 forks source link

When a "Malicious entry" is found the zip file is locked until process is killed #94

Open davepreston opened 2 years ago

davepreston commented 2 years ago

I have a zip file that is being flagged as a "Malicious entry". That part is fine and throws an exception as expected, but then I'm getting stuck. If I do nothing then the zip file is locked and can't be touched until the process is killed (bad in my case because I'm trying to move on to the next file and don't want leftover files - I'm reusing zip filenames so it halts processing). If I try to call the zip.close() function it throws the "Malicious entry" error again and kills the process.

I'm using the async api. I haven't tried switching to the callback API, but I could try that if you think that may resolve the issue.

rostow commented 1 year ago

might be related to #96