mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 23:06:16 -04:00
Fixed FLV previous tag size error
This commit is contained in:
parent
7d8d80ca2c
commit
0d2cb02f97
1 changed files with 4 additions and 3 deletions
|
@ -1317,9 +1317,10 @@ export function extractFLV(bytes, offset) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prevTagSize !== tagSize + 11) {
|
if (prevTagSize !== (tagSize + 11)) {
|
||||||
// Previous tag was not valid
|
// Previous tag was not valid, reverse back over this header
|
||||||
stream.moveBackwardsBy(tagSize + 11);
|
// and the previous tag body and header
|
||||||
|
stream.moveBackwardsBy(tagSize + 11 + 5);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue