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
path: root/tools
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-02-24 01:58:41 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2022-02-26 00:23:03 +0300
commitc900f2e42c6ef4b51b5b9237fa6829a4db544d29 (patch)
tree8e594a422e0830c545777d28348396ccf8d5297a /tools
parent68bc9773cf9c0ad698876424f7d294e4244d3819 (diff)
tools/target_dem_fuzzer: Check fmt before dereferencing
Fixes: NULL pointer dereference Fixes: 44884/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4656748688965632 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tools')
-rw-r--r--tools/target_dem_fuzzer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c
index 687989ccc8..32767a0182 100644
--- a/tools/target_dem_fuzzer.c
+++ b/tools/target_dem_fuzzer.c
@@ -173,7 +173,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
}
// HLS uses a loop with sleep, we thus must breakout or we timeout
- if (!strcmp(fmt->name, "hls"))
+ if (fmt && !strcmp(fmt->name, "hls"))
interrupt_counter &= 31;
if (!io_buffer_size || size / io_buffer_size > maxblocks)