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)