Commit 6241e8a3 authored by Michael Niedermayer's avatar Michael Niedermayer

id2v2: check the return value of decode_str()

Fixes CID1030348
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2d8f880a
......@@ -527,7 +527,8 @@ static void read_chapter(AVFormatContext *s, AVIOContext *pb, int len, char *tta
int taglen;
char tag[5];
decode_str(s, pb, 0, &dst, &len);
if (decode_str(s, pb, 0, &dst, &len) < 0)
return;
if (len < 16)
return;
......
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