Commit a444ddff authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '342c43d1'

* commit '342c43d1':
  omadec: Properly check lengths before incrementing the position

See: f1d6f013Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 97f8d9fe 342c43d1
......@@ -171,7 +171,11 @@ static int nprobe(AVFormatContext *s, uint8_t *enc_header, unsigned size,
taglen = AV_RB32(&enc_header[pos + 32]);
datalen = AV_RB32(&enc_header[pos + 36]) >> 4;
pos += 44 + taglen;
pos += 44;
if (size - pos < taglen)
return -1;
pos += taglen;
if (pos + (((uint64_t)datalen) << 4) > size)
return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment