[FFmpeg-cvslog] tools/target_dem_fuzzer: use avio_context_free() to free the fuzzer's AVIOContext

James Almer git at videolan.org
Fri Nov 20 17:44:31 EET 2020


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sat Nov 14 17:19:04 2020 -0300| [40dfb4328d12f782190d4e38abb443e705315ccd] | committer: James Almer

tools/target_dem_fuzzer: use avio_context_free() to free the fuzzer's AVIOContext

The doxy for avio_alloc_context() states it must be used for this.

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=40dfb4328d12f782190d4e38abb443e705315ccd
---

 tools/target_dem_fuzzer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c
index e4f41765d6..e5c41eea01 100644
--- a/tools/target_dem_fuzzer.c
+++ b/tools/target_dem_fuzzer.c
@@ -202,7 +202,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
     }
 end:
     av_freep(&fuzzed_pb->buffer);
-    av_freep(&fuzzed_pb);
+    avio_context_free(&fuzzed_pb);
     avformat_close_input(&avfmt);
 
     return 0;



More information about the ffmpeg-cvslog mailing list