Closed ncroese closed 4 months ago
I note that with the default validateEntrySizes: true
setting, attempting to parse a malformed zip (like the wrong-entry-sizes.zip in the tests here) causes Node to hang (because the error generated by AssertByteCountStream._flush
is not propagated correctly).
This should be fixed in yauzl 3.0.0. Let me know if you run into any issues.
Node 8 introduced base destroy/_destroy methods for streams. The custom implementation is swallowing errors, so this pull request removes the custom implementations to make use of the default inherited ones.