- fixed Ogg tag validation.

This commit is contained in:
Christoph Oelckers 2017-05-08 17:00:09 +02:00
parent 60fe34349e
commit 26325edddc
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ void FindLoopTags(FileReader *fr, uint32_t *start, bool *startass, uint32_t *end
} }
c -= 3; c -= 3;
int len = c[0] + 256*c[1] + 65536*c[2]; 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 '=' // length looks fishy so retry with the next '='
continue; continue;