mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed Ogg tag validation.
This commit is contained in:
parent
60fe34349e
commit
26325edddc
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ void FindLoopTags(FileReader *fr, uint32_t *start, bool *startass, uint32_t *end
|
|||
}
|
||||
c -= 3;
|
||||
int len = c[0] + 256*c[1] + 65536*c[2];
|
||||
if (c[3] || len > 1000000 || len <= (eqp - c + 1))
|
||||
if (c[3] || len > 1000000 || len < (eqp - c - 3))
|
||||
{
|
||||
// length looks fishy so retry with the next '='
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue