dns_qp fuzz test is failing to build under Clusterfuzz
Step #3 - "compile-afl-address-x86_64": depbase=`echo dns_qp.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
Step #3 - "compile-afl-address-x86_64": /src/aflplusplus/afl-clang-fast -DHAVE_CONFIG_H -I. -I.. -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -DISC_MEM_DEFAULTFILL=1 -DISC_MEM_TRACKLINES=1 -DISC_LIST_CHECKINIT=1 -DISC_STATS_CHECKUNDERFLOW=1 -DDNS_RBTDB_STRONG_RWLOCK_CHECK=1 -include ../config.h -I./include -I../include -I../lib/isc/include -I../lib/isc/include -I../lib/dns/include -I../lib/dns/include -DFUZZDIR=\"/src/bind9/fuzz\" -Wall -Wextra -Wwrite-strings -Wpointer-arith -Wno-missing-field-initializers -Wformat -Wshadow -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=format-security -Werror=parentheses -Werror=implicit -Werror=strict-prototypes -Werror=vla -fno-strict-aliasing -fno-delete-null-pointer-checks -fdiagnostics-show-option -Werror -Wno-vla -O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -pthread -MT dns_qp.o -MD -MP -MF $depbase.Tpo -c -o dns_qp.o dns_qp.c &&\
Step #3 - "compile-afl-address-x86_64": mv -f $depbase.Tpo $depbase.Po
Step #3 - "compile-afl-address-x86_64": [1mdns_qp.c:29:10: [0m[0;1;31mfatal error: [0m[1m'qp_p.h' file not found[0m
Looking at fuzz/Makefile.am dns_qp
and dns_qpkey_name
are bracketed by if HAVE_CMOCKA
/if HAVE_CMOCKA
which sets up the include paths to find qp_p.h
. On a quick examination I can't see a reason for the condition.