mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
cd4ce3b862
commit
1372b30db2
|
@ -172,6 +172,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||||
avfmt->interrupt_callback.callback = interrupt_cb;
|
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)
|
if (!io_buffer_size || size / io_buffer_size > maxblocks)
|
||||||
io_buffer_size = size;
|
io_buffer_size = size;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue