diff options
author | Akira Moroo <retrage01@gmail.com> | 2021-11-15 02:15:58 +0000 |
---|---|---|
committer | Akira Moroo <retrage01@gmail.com> | 2021-11-15 02:15:58 +0000 |
commit | d4a0fd41cd29b5862cac0b99b96b2afc67e33c7d (patch) | |
tree | 11e2c44062f00965552575bbdd92b49fb959b45d /src/afl-fuzz.c | |
parent | feff8191ecbde9bb039e2311440f47e8f0325413 (diff) | |
download | afl++-d4a0fd41cd29b5862cac0b99b96b2afc67e33c7d.tar.gz |
Check `-M` / `-S` is not specified with `-A`
Signed-off-by: Akira Moroo <retrage01@gmail.com>
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 44363c2b..dfd62db8 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -565,6 +565,12 @@ int main(int argc, char **argv_orig, char **envp) { } + if (afl->fsrv.cs_mode) { + + FATAL("-M is not supported in ARM CoreSight mode"); + + } + if (afl->sync_id) { FATAL("Multiple -S or -M options not supported"); } /* sanity check for argument: should not begin with '-' (possible @@ -611,6 +617,12 @@ int main(int argc, char **argv_orig, char **envp) { } + if (afl->fsrv.cs_mode) { + + FATAL("-S is not supported in ARM CoreSight mode"); + + } + if (afl->sync_id) { FATAL("Multiple -S or -M options not supported"); } /* sanity check for argument: should not begin with '-' (possible @@ -833,6 +845,12 @@ int main(int argc, char **argv_orig, char **envp) { FATAL("-A option is not supported on this platform"); #endif + if (afl->is_main_node || afl->is_secondary_node) { + + FATAL("ARM CoreSight mode is not supported with -M / -S"); + + } + if (afl->fsrv.cs_mode) { FATAL("Multiple -A options not supported"); } afl->fsrv.cs_mode = 1; |