File tree Expand file tree Collapse file tree 9 files changed +19
-15
lines changed Expand file tree Collapse file tree 9 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 16
16
# ###############################################################################
17
17
18
18
# build project and project-hosted fuzzers
19
+ sed -i ' s/c++14/c++17/g' $SRC /astc-encoder/Source/Fuzzers/build.sh
19
20
$SRC /astc-encoder/Source/Fuzzers/build.sh
Original file line number Diff line number Diff line change 17
17
18
18
for f in $( find $SRC -name ' *_fuzzer.cpp' ) ; do
19
19
b=$( basename -s .cpp $f )
20
- $CXX $CXXFLAGS -std=c++11 -g easywsclient.cpp -I. \
20
+ $CXX $CXXFLAGS -std=c++17 -g easywsclient.cpp -I. \
21
21
$f -o $OUT /$b $LIB_FUZZING_ENGINE
22
22
done
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ cp $SRC/json-c/fuzz/*.dict $OUT/
24
24
25
25
for f in $SRC /json-c/fuzz/* _fuzzer.cc; do
26
26
fuzzer=$( basename " $f " _fuzzer.cc)
27
- $CXX $CXXFLAGS -std=c++11 -I$SRC /json-c -I$SRC /json-c/json-c-build\
27
+ $CXX $CXXFLAGS -std=c++17 -I$SRC /json-c -I$SRC /json-c/json-c-build\
28
28
$SRC /json-c/fuzz/${fuzzer} _fuzzer.cc -o $OUT /${fuzzer} _fuzzer \
29
29
$LIB_FUZZING_ENGINE $SRC /json-c/json-c-build/libjson-c.a
30
30
done
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ make install
30
30
# build fuzzer
31
31
for fuzzers in $( find $SRC -name ' *_fuzzer.cc' ) ; do
32
32
fuzz_basename=$( basename -s .cc $fuzzers )
33
- $CXX $CXXFLAGS -std=c++11 -I../ -Iinclude \
33
+ $CXX $CXXFLAGS -std=c++17 -I../ -Iinclude \
34
34
$fuzzers $LIB_FUZZING_ENGINE ./lib/libevent.a ./lib/libevent_core.a \
35
35
./lib/libevent_pthreads.a ./lib/libevent_extra.a \
36
36
-o $OUT /$fuzz_basename
Original file line number Diff line number Diff line change @@ -25,17 +25,18 @@ sed -i'' -e 's/INT_MAX/100000/' "$SRC/libgd/src/gd_security.c"
25
25
./configure --prefix=" $WORK " --disable-shared
26
26
make -j$( nproc) install
27
27
28
+ export CXXFLAGS=" ${CXXFLAGS} -std=c++17"
28
29
for target in Bmp Gd Gd2 Gif Jpeg Png Tga Tiff WBMP Webp; do
29
30
lowercase=$( echo $target | tr " [:upper:]" " [:lower:]" )
30
- $CXX $CXXFLAGS -std=c++11 - I" $WORK /include" -L" $WORK /lib" \
31
+ $CXX $CXXFLAGS -I" $WORK /include" -L" $WORK /lib" \
31
32
-DFUZZ_GD_FORMAT=$target \
32
33
$SRC /parser_target.cc -o $OUT /${lowercase} _target \
33
34
$LIB_FUZZING_ENGINE -lgd -Wl,-Bstatic -lz -Wl,-Bdynamic
34
35
done
35
36
36
37
for fuzzers in $( find $SRC -name ' *_fuzzer.cc' ) ; do
37
38
fuzz_basename=$( basename -s .cc $fuzzers )
38
- $CXX $CXXFLAGS -std=c++11 - I" $WORK /include" -L" $WORK /lib" \
39
+ $CXX $CXXFLAGS -I" $WORK /include" -L" $WORK /lib" \
39
40
$fuzzers -o $OUT /$fuzz_basename \
40
41
$LIB_FUZZING_ENGINE -lgd -Wl,-Bstatic -lz -Wl,-Bdynamic
41
42
done
Original file line number Diff line number Diff line change @@ -27,18 +27,19 @@ autoreconf --install
27
27
make
28
28
29
29
# build fuzzers
30
- $CXX $CXXFLAGS -std=c++11 -Ilibraw \
30
+ export CXXFLAGS=" ${CXXFLAGS} -std=c++17"
31
+ $CXX $CXXFLAGS -Ilibraw \
31
32
$SRC /libraw_fuzzer.cc -o $OUT /libraw_fuzzer \
32
33
$LIB_FUZZING_ENGINE -lz lib/.libs/libraw.a
33
34
34
- $CXX $CXXFLAGS -std=c++11 - Ilibraw \
35
+ $CXX $CXXFLAGS -Ilibraw \
35
36
$SRC /libraw_fuzzer.cc -o $OUT /libraw_cr2_fuzzer \
36
37
$LIB_FUZZING_ENGINE -lz lib/.libs/libraw.a
37
38
38
- $CXX $CXXFLAGS -std=c++11 - Ilibraw \
39
+ $CXX $CXXFLAGS -Ilibraw \
39
40
$SRC /libraw_fuzzer.cc -o $OUT /libraw_nef_fuzzer \
40
41
$LIB_FUZZING_ENGINE -lz lib/.libs/libraw.a
41
42
42
- $CXX $CXXFLAGS -std=c++11 - Ilibraw \
43
+ $CXX $CXXFLAGS -Ilibraw \
43
44
$SRC /libraw_fuzzer.cc -o $OUT /libraw_raf_fuzzer \
44
45
$LIB_FUZZING_ENGINE -lz lib/.libs/libraw.a
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ make -j$(nproc) all
23
23
# build fuzzer
24
24
for fuzzer in $( find $SRC -name ' *_fuzzer.cc' ) ; do
25
25
fuzzer_basename=$( basename -s .cc $fuzzer )
26
- $CXX $CXXFLAGS -std=c++11 -I. \
26
+ $CXX $CXXFLAGS -std=c++17 -I. \
27
27
$fuzzer $LIB_FUZZING_ENGINE ./libusb/.libs/libusb-1.0.a \
28
28
-lpthread -ludev \
29
29
-o $OUT /$fuzzer_basename
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ for file in $SRC/*.c;
26
26
do
27
27
name=$( basename $file .c)
28
28
$CC $CFLAGS -c -I include -I minilzo -I include/lzo ${file} -o ${name} .o
29
- $CXX $CXXFLAGS -std=c++11 -I include -I minilzo -I include/lzo ${name} .o \
29
+ $CXX $CXXFLAGS -std=c++17 -I include -I minilzo -I include/lzo ${name} .o \
30
30
-o $OUT /${name} $LIB_FUZZING_ENGINE src/.libs/liblzo2.a
31
31
done
32
32
33
- $CXX $CXXFLAGS -std=c++11 -I include -I minilzo -I include/lzo \
33
+ $CXX $CXXFLAGS -std=c++17 -I include -I minilzo -I include/lzo \
34
34
$SRC /all_lzo_compress.cc \
35
35
-o $OUT /all_lzo_compress $LIB_FUZZING_ENGINE src/.libs/liblzo2.a
36
36
Original file line number Diff line number Diff line change @@ -21,16 +21,17 @@ cmake -DENABLE_LIB_ONLY=ON -DBUILD_STATIC_LIBS=ON ../
21
21
make
22
22
make check
23
23
24
- $CXX $CXXFLAGS -std=c++11 -I../lib/includes -Ilib/includes -I../lib/ -I../tests/ \
24
+ export CXXFLAGS=" ${CXXFLAGS} -std=c++17"
25
+ $CXX $CXXFLAGS -I../lib/includes -Ilib/includes -I../lib/ -I../tests/ \
25
26
../fuzz/fuzz_frames.cc -o $OUT /nghttp2_fuzzer_frames \
26
27
tests/CMakeFiles/main.dir/nghttp2_test_helper.c.o \
27
28
$LIB_FUZZING_ENGINE lib/libnghttp2.a
28
29
29
- $CXX $CXXFLAGS -std=c++11 - I../lib/includes -Ilib/includes -I../lib/ \
30
+ $CXX $CXXFLAGS -I../lib/includes -Ilib/includes -I../lib/ \
30
31
../fuzz/fuzz_target.cc -o $OUT /nghttp2_fuzzer \
31
32
$LIB_FUZZING_ENGINE lib/libnghttp2.a
32
33
33
- $CXX $CXXFLAGS -std=c++11 - I../lib/includes -Ilib/includes -I../lib/ \
34
+ $CXX $CXXFLAGS -I../lib/includes -Ilib/includes -I../lib/ \
34
35
../fuzz/fuzz_target_fdp.cc -o $OUT /nghttp2_fuzzer_fdp \
35
36
$LIB_FUZZING_ENGINE lib/libnghttp2.a
36
37
You can’t perform that action at this time.
0 commit comments