1
0
mirror of https://git.ffmpeg.org/ffmpeg.git synced 2026-10-24 02:09:03 +03:00

tools/target_dem_fuzzer: do not exit on io_buffer allocation failure

Failure to allocate a randomly sized buffer should not count as a anomaly in the fuzzer
there is nothing to fix in that case

Fixes: 490112574/clusterfuzz-testcase-minimized-ffmpeg_dem_TMV_fuzzer-6600485921685504
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2cce6ad030)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2026-05-30 19:48:14 +02:00
parent d2b7bbb98a
commit fbd4397d9d

View File

@@ -185,8 +185,11 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
error("Failed to allocate pkt");
io_buffer = av_malloc(io_buffer_size);
if (!io_buffer)
error("Failed to allocate io_buffer");
if (!io_buffer) {
avformat_free_context(avfmt);
av_packet_free(&pkt);
return 0;
}
opaque.filesize = filesize;
opaque.pos = 0;