🐛 Fix compressed length; it must include the encryption header
This commit is contained in:
parent
050f82b382
commit
5ca48459c1
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ export default function extractFileStream(file: ISsnFileEntry, inputStream: stre
|
|||
let curStream = inputStream;
|
||||
|
||||
//set max length
|
||||
const maxLength = streamSetMaxLength(curStream, file.compressedSize);
|
||||
const maxLength = streamSetMaxLength(curStream, 12 + file.compressedSize);
|
||||
curStream = maxLength;
|
||||
|
||||
//pipe into decryption if file is encrypted
|
||||
|
|
Loading…
Reference in a new issue