提交 016cac75 编写于 作者: A Alexandra Hájková 提交者: Luca Barbato

asfdec: prevent the infinite loop in detect unknown_subobject

Signed-off-by: NLuca Barbato <lu_zero@gentoo.org>
上级 9752d2e6
......@@ -1591,6 +1591,8 @@ static int detect_unknown_subobject(AVFormatContext *s, int64_t offset, int64_t
int ret;
while (avio_tell(pb) <= offset + size) {
if (avio_tell(pb) == asf->offset)
break;
asf->offset = avio_tell(pb);
if ((ret = ff_get_guid(pb, &guid)) < 0)
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册