From 1114ec5559ffdab054216e4daed4a5402698279b Mon Sep 17 00:00:00 2001 From: n1474335 Date: Wed, 27 Nov 2019 12:56:10 +0000 Subject: [PATCH] Improved comment in Tar extractor --- src/core/lib/FileSignatures.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/lib/FileSignatures.mjs b/src/core/lib/FileSignatures.mjs index 1f6e84e2..4fdca1bf 100644 --- a/src/core/lib/FileSignatures.mjs +++ b/src/core/lib/FileSignatures.mjs @@ -2856,8 +2856,7 @@ export function extractTAR(bytes, offset) { // Move to ustar identifier. stream.moveForwardsBy(0x101); if (stream.getBytes(5).join("") !== [0x75, 0x73, 0x74, 0x61, 0x72].join("")) { - - // Needed since we cannot rely on there being at least 0x106 padding of 0s at the end of the TAR(even though there usually is). + // Reverse back to the end of the last section. stream.moveBackwardsBy(0x106); break; }