summaryrefslogtreecommitdiff
path: root/libavformat/id3v2.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-06-09 17:25:39 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-06-09 17:25:39 +0200
commit6241e8a3821d971755217652dff01f3a45580820 (patch)
tree7dd27ab595d782558b99be1f275ffec8e4db5575 /libavformat/id3v2.c
parent2d8f880a9b5dbbae1778ab4e2e8b5a906e81c650 (diff)
id2v2: check the return value of decode_str()
Fixes CID1030348 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/id3v2.c')
-rw-r--r--libavformat/id3v2.c3
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;