From ad44b580d94b3a6caae00bceab2ab1664d552777 Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Fri, 8 Nov 2019 03:34:46 +0100 Subject: [PATCH] do not analyze too long inpus for gnupg list fuzz target (#3007) --- projects/gnupg/fuzz_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/gnupg/fuzz_list.c b/projects/gnupg/fuzz_list.c index 8e1e0034b..048eec184 100644 --- a/projects/gnupg/fuzz_list.c +++ b/projects/gnupg/fuzz_list.c @@ -137,7 +137,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { if (Size > MAX_LEN) { // limit maximum size to avoid long computing times - Size = MAX_LEN; + return 0; } memset(ctrlGlobal, 0, sizeof(*ctrlGlobal));