Commit ffbcb1c6 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/id3v2: Check avio_read() return value in read_chapter()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 460f8fca
......@@ -544,7 +544,8 @@ static void read_chapter(AVFormatContext *s, AVIOContext *pb, int len, char *tta
len -= 16;
while (len > 10) {
avio_read(pb, tag, 4);
if (avio_read(pb, tag, 4) < 4)
goto end;
tag[4] = 0;
taglen = avio_rb32(pb);
avio_skip(pb, 2);
......
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