From 0a7b78b7ee7cc851799f8462f616c10f964987ca Mon Sep 17 00:00:00 2001 From: n1073645 Date: Fri, 15 Nov 2019 15:46:13 +0000 Subject: [PATCH] Made TAR extractor and MACHO signature more robust --- src/core/lib/FileSignatures.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/FileSignatures.mjs b/src/core/lib/FileSignatures.mjs index 8c5a6557..0442b3b0 100644 --- a/src/core/lib/FileSignatures.mjs +++ b/src/core/lib/FileSignatures.mjs @@ -2858,7 +2858,7 @@ export function extractTAR(bytes, offset) { if (stream.getBytes(5).join("") !== [0x75, 0x73, 0x74, 0x61, 0x72].join("")) { // This is needed since if it were not here it relies on there being at least 0x106 padding of 0s at the end of the TAR - stream.moveBackwardsBy(0x101); + stream.moveBackwardsBy(0x106); break; }