diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2024-09-12 22:57:44 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2024-09-19 00:24:27 +0200 |
commit | 176db9db6e23f3299da379060adc89e4abc980b9 (patch) | |
tree | 92c31143f8a620c649de37311c0b09c0ea8bdbeb | |
parent | bd80c97391969f9dbb312d6c498211ad85bb67cb (diff) | |
download | ffmpeg-176db9db6e23f3299da379060adc89e4abc980b9.tar.gz |
avformat/flvdec: Free metaVideoColor
Fixes: memeleak
Fixes: 70659/clusterfuzz-testcase-minimized-ffmpeg_dem_KUX_fuzzer-4539872627458048
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Steven Liu <lingjiujianke@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/flvdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 22a9b9e4a7..1fb3e0cd3f 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -1111,6 +1111,7 @@ static int flv_parse_video_color_info(AVFormatContext *s, AVStream *st, int64_t return TYPE_UNKNOWN; } + av_free(flv->metaVideoColor); if (!(flv->metaVideoColor = av_mallocz(sizeof(FLVMetaVideoColor)))) { return AVERROR(ENOMEM); } |