- fixed Ogg tag validation.

This commit is contained in:
Christoph Oelckers 2017-05-08 17:00:09 +02:00
parent 60fe34349e
commit 26325edddc

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;