mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Fixed FLV previous tag size error
This commit is contained in:
@@ -1317,9 +1317,10 @@ export function extractFLV(bytes, offset) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (prevTagSize !== tagSize + 11) {
|
||||
// Previous tag was not valid
|
||||
stream.moveBackwardsBy(tagSize + 11);
|
||||
if (prevTagSize !== (tagSize + 11)) {
|
||||
// Previous tag was not valid, reverse back over this header
|
||||
// and the previous tag body and header
|
||||
stream.moveBackwardsBy(tagSize + 11 + 5);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user