diff --git a/tests/oss-fuzz/Makefile.ci.in b/tests/oss-fuzz/Makefile.ci.in index e4a2b202..5af1c895 100644 --- a/tests/oss-fuzz/Makefile.ci.in +++ b/tests/oss-fuzz/Makefile.ci.in @@ -14,7 +14,7 @@ libcoap?=libcoap-@LIBCOAP_NAME_SUFFIX@ WARNING_CFLAGS?=@WARNING_CFLAGS@ DTLS_CFLAGS?=@DTLS_CFLAGS@ DTLS_LIBS?=@DTLS_LIBS@ -CPPFLAGS=-I$(top_builddir)/include -I$(top_srcdir)/include +CPPFLAGS=-I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir) CFLAGS=$(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99 CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations diff --git a/tests/oss-fuzz/pdu_parse_tcp_target.c b/tests/oss-fuzz/pdu_parse_tcp_target.c index d9c2154f..bbb084f7 100644 --- a/tests/oss-fuzz/pdu_parse_tcp_target.c +++ b/tests/oss-fuzz/pdu_parse_tcp_target.c @@ -1,7 +1,4 @@ -#include - -/* Declare prototype for internal function coap_pdu_encode_header() */ -size_t coap_pdu_encode_header(coap_pdu_t *, coap_proto_t); +#include "coap3/coap_internal.h" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/tests/oss-fuzz/pdu_parse_udp_target.c b/tests/oss-fuzz/pdu_parse_udp_target.c index baa1f43c..a8cdcb91 100644 --- a/tests/oss-fuzz/pdu_parse_udp_target.c +++ b/tests/oss-fuzz/pdu_parse_udp_target.c @@ -1,7 +1,4 @@ -#include - -/* Declare prototype for internal function coap_pdu_encode_header() */ -size_t coap_pdu_encode_header(coap_pdu_t *, coap_proto_t); +#include "coap3/coap_internal.h" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/tests/oss-fuzz/pdu_parse_ws_target.c b/tests/oss-fuzz/pdu_parse_ws_target.c index f2939b12..ba2ae93d 100644 --- a/tests/oss-fuzz/pdu_parse_ws_target.c +++ b/tests/oss-fuzz/pdu_parse_ws_target.c @@ -1,7 +1,4 @@ -#include - -/* Declare prototype for internal function coap_pdu_encode_header() */ -size_t coap_pdu_encode_header(coap_pdu_t *, coap_proto_t); +#include "coap3/coap_internal.h" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { diff --git a/tests/oss-fuzz/split_uri_target.c b/tests/oss-fuzz/split_uri_target.c index 320f7722..903cd4ba 100644 --- a/tests/oss-fuzz/split_uri_target.c +++ b/tests/oss-fuzz/split_uri_target.c @@ -1,4 +1,4 @@ -#include +#include "coap3/coap_internal.h" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {