File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,9 @@ sed -i "s|PROVIDE_FUZZ_MAIN_FUNCTION|NEVER_PROVIDE_MAIN_FOR_OSS_FUZZ|g" "./confi
54
54
# * --enable-fuzz, see https://github.com/bitcoin/bitcoin/blob/master/doc/fuzzing.md
55
55
# * CONFIG_SITE, see https://github.com/bitcoin/bitcoin/blob/master/depends/README.md
56
56
if [ " $SANITIZER " = " memory" ]; then
57
- CONFIG_SITE=" $PWD /depends/$BUILD_TRIPLET /share/config.site" ./configure --enable-fuzz SANITIZER_LDFLAGS=" $LIB_FUZZING_ENGINE " --disable-hardening
57
+ # _FORTIFY_SOURCE is not compatible with MSAN.
58
+ export CPPFLAGS=" ${CPPFLAGS} -U_FORTIFY_SOURCE"
59
+ CONFIG_SITE=" $PWD /depends/$BUILD_TRIPLET /share/config.site" ./configure --enable-fuzz SANITIZER_LDFLAGS=" $LIB_FUZZING_ENGINE "
58
60
else
59
61
CONFIG_SITE=" $PWD /depends/$BUILD_TRIPLET /share/config.site" ./configure --enable-fuzz SANITIZER_LDFLAGS=" $LIB_FUZZING_ENGINE "
60
62
fi
You can’t perform that action at this time.
0 commit comments