提交 2475f1a8 编写于 作者: L Laurent Aimar 提交者: Janne Grunau

anm: prevent infinite loop

Signed-off-by: NJanne Grunau <janne-libav@jannau.net>
上级 6de33611
......@@ -81,6 +81,8 @@ static inline int op(uint8_t **dst, const uint8_t *dst_end,
int striplen = FFMIN(count, remaining);
if (buf) {
striplen = FFMIN(striplen, buf_end - *buf);
if (*buf >= buf_end)
goto exhausted;
memcpy(*dst, *buf, striplen);
*buf += striplen;
} else if (pixel >= 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册