mirror of https://github.com/google/oss-fuzz.git
parent
ceaa1f2433
commit
312cd47208
|
@ -22,8 +22,10 @@ if [ -z "${SANITIZER_FLAGS-}" ]; then
|
||||||
export SANITIZER_FLAGS=${!FLAGS_VAR-}
|
export SANITIZER_FLAGS=${!FLAGS_VAR-}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# compile script might override environment, use . to call it.
|
if [[ $FUZZING_ENGINE != "none" ]]; then
|
||||||
. compile_${FUZZING_ENGINE}
|
# compile script might override environment, use . to call it.
|
||||||
|
. compile_${FUZZING_ENGINE}
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $SANITIZER_FLAGS = *sanitize=memory* ]]
|
if [[ $SANITIZER_FLAGS = *sanitize=memory* ]]
|
||||||
then
|
then
|
||||||
|
|
|
@ -28,6 +28,7 @@ CONFIGURATIONS = {
|
||||||
'engine-libfuzzer' : [ 'FUZZING_ENGINE=libfuzzer' ],
|
'engine-libfuzzer' : [ 'FUZZING_ENGINE=libfuzzer' ],
|
||||||
'engine-afl' : [ 'FUZZING_ENGINE=afl' ],
|
'engine-afl' : [ 'FUZZING_ENGINE=afl' ],
|
||||||
'engine-honggfuzz' : [ 'FUZZING_ENGINE=honggfuzz' ],
|
'engine-honggfuzz' : [ 'FUZZING_ENGINE=honggfuzz' ],
|
||||||
|
'engine-none' : [ 'FUZZING_ENGINE=none' ],
|
||||||
}
|
}
|
||||||
|
|
||||||
EngineInfo = collections.namedtuple(
|
EngineInfo = collections.namedtuple(
|
||||||
|
|
|
@ -174,7 +174,7 @@ def _get_command_string(command):
|
||||||
def _add_engine_args(parser):
|
def _add_engine_args(parser):
|
||||||
"""Add common engine args."""
|
"""Add common engine args."""
|
||||||
parser.add_argument('--engine', default='libfuzzer',
|
parser.add_argument('--engine', default='libfuzzer',
|
||||||
choices=['libfuzzer', 'afl', 'honggfuzz'])
|
choices=['libfuzzer', 'afl', 'honggfuzz', 'none'])
|
||||||
|
|
||||||
|
|
||||||
def _add_sanitizer_args(parser):
|
def _add_sanitizer_args(parser):
|
||||||
|
|
Loading…
Reference in New Issue