mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 14:11:02 +01:00
Made TAR extractor and MACHO signature more robust
This commit is contained in:
parent
e1cb62848c
commit
0a7b78b7ee
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user