Skip to content

Commit bbf5ebf

Browse files
committed
Recognize ZSTD in zipped buffer
Just provide proper error message
1 parent 6c1aaae commit bbf5ebf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/JSRootIOEvolution.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@
169169
if (getChar(curr) == 'Z' && getChar(curr+1) == 'L' && getCode(curr+2) == 8) { fmt = "new"; off = 2; } else
170170
if (getChar(curr) == 'C' && getChar(curr+1) == 'S' && getCode(curr+2) == 8) { fmt = "old"; off = 0; } else
171171
if (getChar(curr) == 'X' && getChar(curr+1) == 'Z') fmt = "LZMA"; else
172+
if (getChar(curr) == 'Z' && getChar(curr+1) == 'S' && getCode(curr+2) == 1) fmt = "ZSTD"; else
172173
if (getChar(curr) == 'L' && getChar(curr+1) == '4') { fmt = "LZ4"; off = 0; CHKSUM = 8; }
173174

174175
/*

0 commit comments

Comments
 (0)