🐛 Fix compressed length; it must include the encryption header

This commit is contained in:
C-3PO 2018-07-05 02:45:14 +02:00
parent 050f82b382
commit 5ca48459c1
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -32,7 +32,7 @@ export default function extractFileStream(file: ISsnFileEntry, inputStream: stre
let curStream = inputStream; let curStream = inputStream;
//set max length //set max length
const maxLength = streamSetMaxLength(curStream, file.compressedSize); const maxLength = streamSetMaxLength(curStream, 12 + file.compressedSize);
curStream = maxLength; curStream = maxLength;
//pipe into decryption if file is encrypted //pipe into decryption if file is encrypted