Remove dataflow support from helper.py (#7970)

* Remove dataflow support from helper.py
Related: #7964

* fix

* fmt
This commit is contained in:
jonathanmetzman 2022-07-08 08:31:34 +02:00 committed by GitHub
parent ae357f3b77
commit 817620fd70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 11 deletions

View File

@ -34,8 +34,8 @@ LANGUAGES_WITH_COVERAGE_SUPPORT = [
'c', 'c++', 'go', 'jvm', 'python', 'rust', 'swift'
]
SANITIZERS = [
'address', 'none', 'memory', 'undefined', 'dataflow', 'thread', 'coverage',
'address', 'none', 'memory', 'undefined', 'thread', 'coverage',
'introspector'
]
ARCHITECTURES = ['i386', 'x86_64']
ENGINES = ['libfuzzer', 'afl', 'honggfuzz', 'dataflow', 'none']
ENGINES = ['libfuzzer', 'afl', 'honggfuzz', 'none']

View File

@ -156,10 +156,7 @@ def main(): # pylint: disable=too-many-branches,too-many-return-statements
# We have different default values for `sanitizer` depending on the `engine`.
# Some commands do not have `sanitizer` argument, so `hasattr` is necessary.
if hasattr(args, 'sanitizer') and not args.sanitizer:
if args.engine == 'dataflow':
args.sanitizer = 'dataflow'
else:
args.sanitizer = constants.DEFAULT_SANITIZER
args.sanitizer = constants.DEFAULT_SANITIZER
if args.command == 'generate':
result = generate(args)
@ -455,11 +452,10 @@ def _add_sanitizer_args(parser, choices=None):
"""Adds common sanitizer args."""
if choices is None:
choices = constants.SANITIZERS
parser.add_argument(
'--sanitizer',
default=None,
choices=choices,
help='the default is "address"; "dataflow" for "dataflow" engine')
parser.add_argument('--sanitizer',
default=None,
choices=choices,
help='the default is "address"')
def _add_environment_args(parser):