diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-06-09 17:25:39 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-06-09 17:25:39 +0200 |
commit | 6241e8a3821d971755217652dff01f3a45580820 (patch) | |
tree | 7dd27ab595d782558b99be1f275ffec8e4db5575 | |
parent | 2d8f880a9b5dbbae1778ab4e2e8b5a906e81c650 (diff) | |
download | ffmpeg-6241e8a3821d971755217652dff01f3a45580820.tar.gz |
id2v2: check the return value of decode_str()
Fixes CID1030348
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/id3v2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index 74d637554f..4bc76a321c 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -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; |