提交 e166fe2e 编写于 作者: C Clément Bœsch

Merge commit '46191a2d'

* commit '46191a2d':
  mov: fix a possible invalid read in mov_read_mac_string()
Merged-by: NClément Bœsch <u@pkh.me>
......@@ -162,7 +162,11 @@ static int mov_read_mac_string(MOVContext *c, AVIOContext *pb, int len,
for (i = 0; i < len; i++) {
uint8_t t, c = avio_r8(pb);
if (c < 0x80 && p < end)
if (p >= end)
continue;
if (c < 0x80)
*p++ = c;
else if (p < end)
PUT_UTF8(mac_to_unicode[c-0x80], t, if (p < end) *p++ = t;);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册