From 5ca48459c1b689d33a59068b2353409dedbaee44 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Thu, 5 Jul 2018 02:45:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20compressed=20length;=20it?= =?UTF-8?q?=20must=20include=20the=20encryption=20header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/extractFileStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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