[gnupg] Updates fuzz targets for gnupg (#2576)

Adding an arugment to public_key_list
This commit is contained in:
Catena cyber 2019-07-08 15:29:22 +02:00 committed by Max Moroz
parent 84119adfbd
commit c58fc17c52
4 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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");

View File

@ -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");