ref: 00d1f4d50117c48f39d8497682755b63b16389a4
parent: 0f7a97ba909929bf312f1c9df3e5fc411479981c
author: Janne Grunau <janne-vlc@jannau.net>
date: Mon Dec 10 03:47:53 EST 2018
cdf: fix memleak in dav1d_cdf_thread_unref Observed with clusterfuzz-testcase-minimized-dav1d_fuzzer_mt-5700224002031616. Credits to oss-fuzz.
--- a/src/cdf.c
+++ b/src/cdf.c
@@ -4200,9 +4200,9 @@
}
void dav1d_cdf_thread_unref(CdfThreadContext *const cdf) {
- memset(cdf, 0, sizeof(*cdf));
if (cdf->ref)
dav1d_ref_dec(&cdf->ref);
+ memset(cdf, 0, sizeof(*cdf));
}
void dav1d_cdf_thread_wait(CdfThreadContext *const cdf) {