diff --git a/components/lwip/test_afl_host/esp_attr.h b/components/lwip/test_afl_host/esp_attr.h index 277532a50d..3ed81f776d 100644 --- a/components/lwip/test_afl_host/esp_attr.h +++ b/components/lwip/test_afl_host/esp_attr.h @@ -1,6 +1,7 @@ #pragma once #define _ESP_NETIF_SUPPRESS_LEGACY_WARNING_ #define __ARCH_CC_H__ +#define __XTENSA_API_H__ #define IRAM_ATTR #define FLAG_ATTR(TYPE) #define SSIZE_MAX INT_MAX diff --git a/components/mdns/test_afl_fuzz_host/Makefile b/components/mdns/test_afl_fuzz_host/Makefile index e8ad152323..b54af73b22 100644 --- a/components/mdns/test_afl_fuzz_host/Makefile +++ b/components/mdns/test_afl_fuzz_host/Makefile @@ -27,6 +27,7 @@ CFLAGS=-g -Wno-unused-value -Wno-missing-declarations -Wno-pointer-bool-conversi -I$(COMPONENTS_DIR)/lwip/lwip/src/include \ -I$(COMPONENTS_DIR)/lwip/port/esp32/include \ -I$(COMPONENTS_DIR)/lwip/lwip/src/include/lwip/apps \ + -I$(COMPONENTS_DIR)/newlib/platform_include \ -I$(COMPONENTS_DIR)/soc/include \ -I$(COMPONENTS_DIR)/soc/soc/include \ -I$(COMPONENTS_DIR)/soc/soc/esp32/include \ diff --git a/components/mdns/test_afl_fuzz_host/esp_attr.h b/components/mdns/test_afl_fuzz_host/esp_attr.h index abbb3b3e00..149f25c002 100644 --- a/components/mdns/test_afl_fuzz_host/esp_attr.h +++ b/components/mdns/test_afl_fuzz_host/esp_attr.h @@ -1,3 +1,6 @@ #pragma once #define IRAM_ATTR #define FLAG_ATTR(TYPE) +#define QUEUE_H +#define __XTENSA_API_H__ +#define SSIZE_MAX INT_MAX diff --git a/tools/ci/config/host-test.yml b/tools/ci/config/host-test.yml index 0c921b1308..cf7b514e5c 100644 --- a/tools/ci/config/host-test.yml +++ b/tools/ci/config/host-test.yml @@ -110,6 +110,17 @@ test_lwip_dhcps_fuzzer_on_host: FUZZER_TEST_DIR: components/lwip/test_afl_host FUZZER_PARAMS: MODE=dhcp_server +test_compile_fuzzers: + extends: .host_test_template + image: $CI_DOCKER_REGISTRY/afl-fuzzer-test + script: + - cd ${IDF_PATH}/components/lwip/test_afl_host + - make MODE=dhcp_server + - make MODE=dhcp_client + - make MODE=dns + - cd ${IDF_PATH}/components/mdns/test_afl_fuzz_host + - make + test_spiffs_on_host: extends: .host_test_template script: