mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Improved comment in Tar extractor
This commit is contained in:
parent
5366f1a2eb
commit
2750284eea
1 changed files with 1 additions and 2 deletions
|
@ -2856,8 +2856,7 @@ export function extractTAR(bytes, offset) {
|
||||||
// Move to ustar identifier.
|
// Move to ustar identifier.
|
||||||
stream.moveForwardsBy(0x101);
|
stream.moveForwardsBy(0x101);
|
||||||
if (stream.getBytes(5).join("") !== [0x75, 0x73, 0x74, 0x61, 0x72].join("")) {
|
if (stream.getBytes(5).join("") !== [0x75, 0x73, 0x74, 0x61, 0x72].join("")) {
|
||||||
|
// Reverse back to the end of the last section.
|
||||||
// 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).
|
|
||||||
stream.moveBackwardsBy(0x106);
|
stream.moveBackwardsBy(0x106);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue