aboutsummaryrefslogtreecommitdiff
path: root/fuzz/fuzz_config.cpp
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2023-04-21 11:27:20 +0200
committerToni Uhlig <matzeton@googlemail.com>2023-04-21 11:28:03 +0200
commitc8d6dd0821fda2cbceae25abf9ee9c4db992b100 (patch)
tree019ebf2de80e57793df92a3da7d93ea18def7d32 /fuzz/fuzz_config.cpp
parentba993300311158c79c4880a621e43684d4b4a03d (diff)
Improved debug output.improved/debug-out
* try to get rid of some `printf(..)`s as they do not belong to a shared library * replaced all `exit(..)`s with `abort()`s to indicate an abnormal process termination Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'fuzz/fuzz_config.cpp')
-rw-r--r--fuzz/fuzz_config.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/fuzz/fuzz_config.cpp b/fuzz/fuzz_config.cpp
index 177266ba7..8f98c5929 100644
--- a/fuzz/fuzz_config.cpp
+++ b/fuzz/fuzz_config.cpp
@@ -6,8 +6,6 @@
#include <assert.h>
#include "fuzzer/FuzzedDataProvider.h"
-extern "C" void ndpi_self_check_host_match(); /* Self check function */
-
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
FuzzedDataProvider fuzzed_data(data, size);
struct ndpi_detection_module_struct *ndpi_info_mod;
@@ -136,7 +134,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
ndpi_get_num_supported_protocols(ndpi_info_mod);
ndpi_get_ndpi_num_custom_protocols(ndpi_info_mod);
- ndpi_self_check_host_match();
+ ndpi_self_check_host_match(stderr);
/* Basic code to try testing this "config" */
bool_value = fuzzed_data.ConsumeBool();