Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2020-10-11 16:22:51 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2020-10-12 18:54:52 +0300
commitd40f2498618515c9e3d81db295c881b800666dc2 (patch)
treef1b337d40db49c9ce04f334533c66013aeb4366c /libavcodec/cbs_av1.c
parentf7fd205f11d5299d6a16b0ff0ae85fddb32772f2 (diff)
avcodec/cbs_av1: Free content in cbs_av1_free_metadata()
Fixes: memleak Fixes: 25838/clusterfuzz-testcase-minimized-ffmpeg_BSF_TRACE_HEADERS_fuzzer-5736255957237760 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cbs_av1.c')
-rw-r--r--libavcodec/cbs_av1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 65cf45fcfa..8aa7b09fa7 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -1228,6 +1228,7 @@ static void cbs_av1_free_metadata(void *unit, uint8_t *content)
av_buffer_unref(&md->metadata.itut_t35.payload_ref);
break;
}
+ av_free(content);
}
static const CodedBitstreamUnitTypeDescriptor cbs_av1_unit_types[] = {