aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra
diff options
context:
space:
mode:
authorGravatar jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com>2022-07-08 08:31:34 +0200
committerGravatar GitHub <noreply@github.com>2022-07-08 08:31:34 +0200
commit817620fd70e95bca1349bad655d43cee131fa338 (patch)
tree13c11ebde145caacf18c9e2a5469d99aaff1a477 /infra
parentae357f3b77288a8bd6ffd1e18e9d2e9009d0afaf (diff)
Remove dataflow support from helper.py (#7970)
* Remove dataflow support from helper.py Related: #7964 * fix * fmt
Diffstat (limited to 'infra')
-rw-r--r--infra/constants.py4
-rwxr-xr-xinfra/helper.py14
2 files changed, 7 insertions, 11 deletions
diff --git a/infra/constants.py b/infra/constants.py
index 81e100b3..ac26308a 100644
--- a/infra/constants.py
+++ b/infra/constants.py
@@ -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']
diff --git a/infra/helper.py b/infra/helper.py
index 4c75ece9..8c5befc9 100755
--- a/infra/helper.py
+++ b/infra/helper.py
@@ -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):