Commit 22a878ec authored by Paul B Mahol's avatar Paul B Mahol

avcodec/scpr: check for possible out of array access

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 02ae52db
......@@ -211,6 +211,10 @@ static int decode_value(SCPRContext *s, unsigned *cnt, unsigned maxc, unsigned s
break;
c++;
}
if (c >= maxc)
return AVERROR_INVALIDDATA;
if ((ret = s->decode(gb, rc, cumfr, cnt_c, totfr)) < 0)
return ret;
......
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