提交 22a878ec 编写于 作者: P Paul B Mahol

avcodec/scpr: check for possible out of array access

Signed-off-by: NPaul B Mahol <onemda@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册