mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04:00
Removed debugging try/catch
This commit is contained in:
parent
0f0674daf6
commit
62dd7c3dbc
1 changed files with 9 additions and 12 deletions
|
@ -3817,22 +3817,19 @@ export function extractLZOP(bytes, offset) {
|
||||||
// Move past checksum.
|
// Move past checksum.
|
||||||
stream.moveForwardsBy(4);
|
stream.moveForwardsBy(4);
|
||||||
|
|
||||||
try {
|
while (stream.hasMore()) {
|
||||||
while (stream.hasMore()) {
|
const uncompSize = stream.readInt(4, "be");
|
||||||
const uncompSize = stream.readInt(4, "be");
|
|
||||||
|
|
||||||
// If data has no length, break.
|
// If data has no length, break.
|
||||||
if (uncompSize === 0)
|
if (uncompSize === 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
const compSize = stream.readInt(4, "be");
|
const compSize = stream.readInt(4, "be");
|
||||||
|
|
||||||
const numCheckSumSkip = (uncompSize === compSize) ? numCheckSumD : numCheckSumD + numCheckSumC;
|
const numCheckSumSkip = (uncompSize === compSize) ? numCheckSumD : numCheckSumD + numCheckSumC;
|
||||||
|
|
||||||
// skip forwards by compressed data size and the size of the checksum(s).
|
// skip forwards by compressed data size and the size of the checksum(s).
|
||||||
stream.moveForwardsBy(compSize + (numCheckSumSkip * 4));
|
stream.moveForwardsBy(compSize + (numCheckSumSkip * 4));
|
||||||
}
|
|
||||||
} catch (error) {
|
|
||||||
}
|
}
|
||||||
return stream.carve();
|
return stream.carve();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue