Skip to content

Commit 63ed6e2

Browse files
committedNov 18, 2020
Detect and throw error with encrypted files
1 parent c64ac14 commit 63ed6e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎zipEntry.js

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ module.exports = function (/*Buffer*/input) {
5454
return compressedData;
5555
}
5656

57+
if (_entryHeader.encripted){
58+
if (async && callback) callback(Buffer.alloc(0), Utils.Errors.UNKNOWN_METHOD);
59+
throw new Error(Utils.Errors.UNKNOWN_METHOD);
60+
}
61+
5762
var data = Buffer.alloc(_entryHeader.size);
5863

5964
switch (_entryHeader.method) {

0 commit comments

Comments
 (0)
Please sign in to comment.