diff --git a/src/ssn/extractFileStream.ts b/src/ssn/extractFileStream.ts index 7e7dab9..ca7899d 100644 --- a/src/ssn/extractFileStream.ts +++ b/src/ssn/extractFileStream.ts @@ -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