#!/usr/bin/env bash # This file is used by build.sh to setup fuzzing.
set +e
# Default to clang if CC is not set. if [ -z "$CC" ]; then if ! command -v clang &> /dev/null 2>&1; then echo"Fuzzing requires clang!"
exit 1 fi export CC=clang export CCC=clang++ export CXX=clang++ fi
# Add debug symbols even for opt builds.
nspr_params+=(--enable-debug-symbols)
if [ "$fuzz_oss" = 1 ]; then
gyp_params+=(-Dno_zdefs=1 -Dfuzz_oss=1) else
enable_sanitizer asan
enable_sanitizer fuzzer # Ubsan only builds on x64 for the moment. if [ "$target_arch" = "x64" ]; then
enable_ubsan fi fi
if [ "$fuzz_tls" = 1 ]; then
gyp_params+=(-Dfuzz_tls=1) fi
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.