Commit ac77c549 authored by Michael Niedermayer's avatar Michael Niedermayer

tools/target_dec_fuzzer: Do not increase max_pixels

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b29c7bcb
......@@ -180,11 +180,12 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
}
AVCodecContext* ctx = avcodec_alloc_context3(NULL);
AVCodecContext* ctx = avcodec_alloc_context3(c);
AVCodecContext* parser_avctx = avcodec_alloc_context3(NULL);
if (!ctx || !parser_avctx)
error("Failed memory allocation");
if (ctx->max_pixels == 0 || ctx->max_pixels > maxpixels_per_frame)
ctx->max_pixels = maxpixels_per_frame; //To reduce false positive OOM and hangs
if (size > 1024) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment