Commit d58752bc authored by Paul B Mahol's avatar Paul B Mahol

avformat/aiffdec: fix signed integer overflow

Fixes #8151
parent 121bf1b3
......@@ -243,7 +243,10 @@ static int aiff_read_header(AVFormatContext *s)
if (size < 0)
return size;
filesize -= size + 8;
if (size >= 0x7fffffff - 8)
filesize = 0;
else
filesize -= size + 8;
switch (tag) {
case MKTAG('C', 'O', 'M', 'M'): /* Common chunk */
......
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