mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
doc/examples/decoder_targeted: Limit max pixels for fuzzing
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
02aa0701ae
commit
99af260d0b
@ -147,6 +147,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
AVCodecContext* ctx = avcodec_alloc_context3(NULL);
|
||||
if (!ctx)
|
||||
error("Failed memory allocation");
|
||||
|
||||
ctx->max_pixels = 4096 * 4096; //To reduce false positive OOM and hangs
|
||||
|
||||
int res = avcodec_open2(ctx, c, NULL);
|
||||
if (res < 0)
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user