From 6241e8a3821d971755217652dff01f3a45580820 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 9 Jun 2013 17:25:39 +0200 Subject: [PATCH] id2v2: check the return value of decode_str() Fixes CID1030348 Signed-off-by: Michael Niedermayer --- libavformat/id3v2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;