Browse Source

avformat/id3v2: fix leak in chapter parsing

Reviewed-on: https://chromium-review.googlesource.com/439405
Reviewed-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: James Almer <jamrial@gmail.com>
tags/n3.3.5^0
Fredrik Hubinette James Almer 9 years ago
parent
commit
670d3189e9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/id3v2.c

+ 2
- 2
libavformat/id3v2.c View File

@@ -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);


Loading…
Cancel
Save