File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -139,15 +139,15 @@ curl_fuzzer_fnmatch_CXXFLAGS = $(COMMON_FLAGS)
139
139
curl_fuzzer_fnmatch_LDADD = $(COMMON_LDADD )
140
140
141
141
curl_fuzzer_altsvc_SOURCES = fuzz_altsvc.cc
142
- curl_fuzzer_altsvc_CXXFLAGS = $(COMMON_FLAGS )
142
+ curl_fuzzer_altsvc_CXXFLAGS = $(COMMON_FLAGS ) -I $( CURLDIR )
143
143
curl_fuzzer_altsvc_LDADD = $(COMMON_LDADD )
144
144
145
145
curl_fuzzer_base64_SOURCES = fuzz_base64.cc
146
- curl_fuzzer_base64_CXXFLAGS = $(COMMON_FLAGS )
146
+ curl_fuzzer_base64_CXXFLAGS = $(COMMON_FLAGS ) -I $( CURLDIR )
147
147
curl_fuzzer_base64_LDADD = $(COMMON_LDADD )
148
148
149
149
curl_fuzzer_doh_SOURCES = fuzz_doh.cc
150
- curl_fuzzer_doh_CXXFLAGS = $(COMMON_FLAGS )
150
+ curl_fuzzer_doh_CXXFLAGS = $(COMMON_FLAGS ) -I $( CURLDIR )
151
151
curl_fuzzer_doh_LDADD = $(COMMON_LDADD )
152
152
153
153
# Create the seed corpora zip files.
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ extern "C"
28
28
#include < unistd.h>
29
29
#include < inttypes.h>
30
30
#include < curl/curl.h>
31
- #include " curl/ lib/curl_base64.h"
32
- #include " curl/ lib/curl_printf.h"
33
- #include " curl/ lib/curl_memory.h"
34
- #include " curl/ lib/memdebug.h"
31
+ #include < lib/curl_base64.h>
32
+ #include < lib/curl_printf.h>
33
+ #include < lib/curl_memory.h>
34
+ #include < lib/memdebug.h>
35
35
#include < assert.h>
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ extern "C"
31
31
#include < assert.h>
32
32
#define WARN_UNUSED_RESULT /* hack */
33
33
#define DEBUGBUILD
34
- #include " curl/ lib/dynbuf.h"
34
+ #include < lib/dynbuf.h>
35
35
36
36
typedef enum {
37
37
DOH_OK,
Original file line number Diff line number Diff line change 6
6
export BUILD_ROOT=$PWD
7
7
SCRIPTDIR=${BUILD_ROOT} /scripts
8
8
9
- CURLDIR=/tmp/curl
9
+ export CURLDIR=/tmp/curl
10
10
OPENSSLDIR=/tmp/openssl
11
11
NGHTTPDIR=/tmp/nghttp2
12
12
INSTALLDIR=/tmp/curl_install
Original file line number Diff line number Diff line change 23
23
24
24
# Save off the current folder as the build root.
25
25
export BUILD_ROOT=$PWD
26
+ export CURLDIR=/src/curl
26
27
SCRIPTDIR=${BUILD_ROOT} /scripts
27
28
28
29
. ${SCRIPTDIR} /fuzz_targets
60
61
${SCRIPTDIR} /handle_x.sh nghttp2 ${NGHTTPDIR} ${INSTALLDIR} || exit 1
61
62
62
63
# Compile curl
63
- ${SCRIPTDIR} /install_curl.sh /src/curl ${INSTALLDIR}
64
+ ${SCRIPTDIR} /install_curl.sh $CURLDIR ${INSTALLDIR}
64
65
65
66
# Build the fuzzers.
66
67
${SCRIPTDIR} /compile_fuzzer.sh ${INSTALLDIR}
You can’t perform that action at this time.
0 commit comments