From c58fc17c529d4093e676892e19c5ac8fbfbbdda3 Mon Sep 17 00:00:00 2001 From: Catena cyber <35799796+catenacyber@users.noreply.github.com> Date: Mon, 8 Jul 2019 15:29:22 +0200 Subject: [PATCH] [gnupg] Updates fuzz targets for gnupg (#2576) Adding an arugment to public_key_list --- projects/gnupg/fuzz_decrypt.c | 2 +- projects/gnupg/fuzz_import.c | 2 +- projects/gnupg/fuzz_list.c | 2 +- projects/gnupg/fuzz_verify.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/gnupg/fuzz_decrypt.c b/projects/gnupg/fuzz_decrypt.c index 51e305b17..744f68e99 100644 --- a/projects/gnupg/fuzz_decrypt.c +++ b/projects/gnupg/fuzz_decrypt.c @@ -110,7 +110,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { } //populate /tmp/fuzzdirdecrypt/ as homedir ~/.gnupg strlist_t sl = NULL; - public_key_list (ctrlGlobal, sl, 0); + public_key_list (ctrlGlobal, sl, 0, 0); free_strlist(sl); //no output for stderr log_set_file("/dev/null"); diff --git a/projects/gnupg/fuzz_import.c b/projects/gnupg/fuzz_import.c index 1d1b28330..e410fff5b 100644 --- a/projects/gnupg/fuzz_import.c +++ b/projects/gnupg/fuzz_import.c @@ -121,7 +121,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { } //populate /tmp/fuzzdirimport/ as homedir ~/.gnupg strlist_t sl = NULL; - public_key_list (ctrlGlobal, sl, 0); + public_key_list (ctrlGlobal, sl, 0, 0); free_strlist(sl); //no output for stderr log_set_file("/dev/null"); diff --git a/projects/gnupg/fuzz_list.c b/projects/gnupg/fuzz_list.c index d629d2ff9..07fc1db94 100644 --- a/projects/gnupg/fuzz_list.c +++ b/projects/gnupg/fuzz_list.c @@ -121,7 +121,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { } //populate /tmp/fuzzdirlist/ as homedir ~/.gnupg strlist_t sl = NULL; - public_key_list (ctrlGlobal, sl, 0); + public_key_list (ctrlGlobal, sl, 0, 0); free_strlist(sl); //no output for stderr log_set_file("/dev/null"); diff --git a/projects/gnupg/fuzz_verify.c b/projects/gnupg/fuzz_verify.c index e0e37c48d..f08ef0f96 100644 --- a/projects/gnupg/fuzz_verify.c +++ b/projects/gnupg/fuzz_verify.c @@ -110,7 +110,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) { } //populate /tmp/fuzzdirverify/ as homedir ~/.gnupg strlist_t sl = NULL; - public_key_list (ctrlGlobal, sl, 0); + public_key_list (ctrlGlobal, sl, 0, 0); free_strlist(sl); //no output for stderr log_set_file("/dev/null");