diff options
author | Fredrik Hubinette <hubbe@google.com> | 2017-02-07 12:19:38 -0800 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-10-26 13:51:03 -0300 |
commit | 670d3189e9ef674e4167cec3145ea4c4c172d581 (patch) | |
tree | ce436956fe1b01f1394e85bb5a56ec066a1709c4 | |
parent | 60b385a5bf9f0d4b59012d6b2e9483eece35204e (diff) | |
download | ffmpeg-n3.3.5.tar.gz |
avformat/id3v2: fix leak in chapter parsingn3.3.5
Reviewed-on: https://chromium-review.googlesource.com/439405
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/id3v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c index f7fa3ef856..aa0a1cbcfd 100644 --- a/libavformat/id3v2.c +++ b/libavformat/id3v2.c @@ -688,9 +688,9 @@ static void read_chapter(AVFormatContext *s, AVIOContext *pb, int len, const cha } if (decode_str(s, pb, 0, &dst, &len) < 0) - return; + goto end; if (len < 16) - return; + goto end; start = avio_rb32(pb); end = avio_rb32(pb); |