node-stream-zip icon indicating copy to clipboard operation
node-stream-zip copied to clipboard

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

Open davepreston opened this issue 2 years ago • 1 comments

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.

davepreston avatar Jul 26 '22 19:07 davepreston

might be related to #96

rostow avatar Jan 25 '23 18:01 rostow