diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2021-12-05 19:23:26 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-02-19 13:27:02 +0100 |
commit | 1372b30db2d5b4565376a168d7d806c56f3d96f1 (patch) | |
tree | 95da4117050088dad4dd56970d0b33bc024c4e63 /tools/target_dem_fuzzer.c | |
parent | cd4ce3b862eacd0f2ccf9dadb5cb31776e599dd8 (diff) | |
download | ffmpeg-1372b30db2d5b4565376a168d7d806c56f3d96f1.tar.gz |
tools/target_dem_fuzzer: Force interrupt for HLS
Fixes: Timeout
Fixes: 41580/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuzzer-5059099224571904
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/target_dem_fuzzer.c')
-rw-r--r-- | tools/target_dem_fuzzer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/target_dem_fuzzer.c b/tools/target_dem_fuzzer.c index 6ee793a28b..687989ccc8 100644 --- a/tools/target_dem_fuzzer.c +++ b/tools/target_dem_fuzzer.c @@ -172,6 +172,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { avfmt->interrupt_callback.callback = interrupt_cb; } + // HLS uses a loop with sleep, we thus must breakout or we timeout + if (!strcmp(fmt->name, "hls")) + interrupt_counter &= 31; + if (!io_buffer_size || size / io_buffer_size > maxblocks) io_buffer_size = size; |