+2
-2
@@ -78,8 +78,8 @@ fuzz_quic_get_crypto_data_LINK=$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS)
|
||||
$(fuzz_quic_get_crypto_data_LDFLAGS) @NDPI_LDFLAGS@ $(LDFLAGS) -o $@
|
||||
|
||||
fuzz_config_SOURCES = fuzz_config.cpp fuzz_common_code.c
|
||||
fuzz_config_CXXFLAGS = @NDPI_CFLAGS@ $(CXXFLAGS)
|
||||
fuzz_config_CFLAGS = @NDPI_CFLAGS@ $(CXXFLAGS)
|
||||
fuzz_config_CXXFLAGS = -I../src/lib/ @NDPI_CFLAGS@ $(CXXFLAGS) -DNDPI_LIB_COMPILATION
|
||||
fuzz_config_CFLAGS = -I../src/lib/ @NDPI_CFLAGS@ $(CXXFLAGS) -DNDPI_LIB_COMPILATION
|
||||
fuzz_config_LDADD = ../src/lib/libndpi.a $(ADDITIONAL_LIBS)
|
||||
fuzz_config_LDFLAGS = $(LIBS)
|
||||
if HAS_FUZZLDFLAGS
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "ndpi_api.h"
|
||||
#include "ndpi_private.h"
|
||||
#include "ndpi_classify.h"
|
||||
#include "fuzz_common_code.h"
|
||||
|
||||
@@ -204,7 +205,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
ndpi_get_http_method(ndpi_info_mod, bool_value ? &flow : NULL);
|
||||
ndpi_get_http_url(ndpi_info_mod, &flow);
|
||||
ndpi_get_http_content_type(ndpi_info_mod, &flow);
|
||||
ndpi_check_for_email_address(ndpi_info_mod, 0);
|
||||
check_for_email_address(ndpi_info_mod, 0);
|
||||
ndpi_get_flow_name(bool_value ? &flow : NULL);
|
||||
/* ndpi_guess_undetected_protocol() is a "strange" function. Try fuzzing it, here */
|
||||
if(!ndpi_is_protocol_detected(ndpi_info_mod, p)) {
|
||||
|
||||
Reference in New Issue
Block a user