mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:33:32 +03:00
ossfuzz: Move to C++ for curl_fuzzer.
Automake gets confused if you want to use C++ static libraries with C code - basically we need to involve the clang++ linker. The easiest way of achieving this is to rename the C code as C++ code. This gets us a bit further along the path and ought to be compatible with Google's version of clang.
This commit is contained in:
parent
c290b8fb23
commit
57001ce3bb
10 changed files with 29 additions and 17 deletions
|
|
@ -8,7 +8,9 @@ Building the fuzz target
|
|||
From the CURL root directory:
|
||||
|
||||
export CC=clang-5.0
|
||||
export CXX=clang++-5.0
|
||||
export CFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp"
|
||||
export CXXFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp -stdlib=libc++"
|
||||
./configure --disable-shared --enable-debug --enable-maintainer-mode
|
||||
make -sj
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue