-
Notifications
You must be signed in to change notification settings - Fork 80
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
RangeError thrown, not passed in callback #156
Comments
The code causing the exception is in Lines 197 to 204 in 6fbfef9
It could either validate the arguments and invoke |
great test case! i've reproduced the problem and i'm working on a fix. |
The fix is included in version 3.1.3! |
checked with my corrupted 2MB file, works like a charm! thanks a lot 🙏 |
I have a sample zip file that is too short, and it causes a
RangeError
in node'sBuffer.copy
which is unhandled.From the gist of the corrupted file with a size of 2MB, I created a test with node 18:
it crashes with:
This could only be caught, with a:
which is not an option for us, as this code is called by an AWS service.
The text was updated successfully, but these errors were encountered: