Pārlūkot izejas kodu

Improved comment in Tar extractor

n1474335 5 gadi atpakaļ
vecāks
revīzija
2750284eea
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      src/core/lib/FileSignatures.mjs

+ 1 - 2
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;
         }