about summary refs log tree commit diff
path: root/src/afl-tmin.c
diff options
context:
space:
mode:
authorAkira Moroo <retrage01@gmail.com>2021-11-15 01:57:36 +0000
committerAkira Moroo <retrage01@gmail.com>2021-11-15 01:57:36 +0000
commitfeff8191ecbde9bb039e2311440f47e8f0325413 (patch)
treec19b7648196ddbc819bfe1f59ff167188ed70c8e /src/afl-tmin.c
parentc2feee4ed1b35cc590e2beaa595d710b09e1427c (diff)
downloadafl++-feff8191ecbde9bb039e2311440f47e8f0325413.tar.gz
Fix platform check for `-A` CoreSight mode
Signed-off-by: Akira Moroo <retrage01@gmail.com>
Diffstat (limited to 'src/afl-tmin.c')
-rw-r--r--src/afl-tmin.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/afl-tmin.c b/src/afl-tmin.c
index 110beed5..22383a4e 100644
--- a/src/afl-tmin.c
+++ b/src/afl-tmin.c
@@ -1038,13 +1038,11 @@ int main(int argc, char **argv_orig, char **envp) {
 
       case 'A':                                           /* CoreSight mode */
 
-        if (fsrv->cs_mode) { FATAL("Multiple -A options not supported"); }
-
-        if (!(__aarch64__ && __linux__)) {
-
-          FATAL("-A option is not supported on this platform");
+#if !defined(__aarch64__) || !defined(__linux__)
+        FATAL("-A option is not supported on this platform");
+#endif
 
-        }
+        if (fsrv->cs_mode) { FATAL("Multiple -A options not supported"); }
 
         fsrv->cs_mode = 1;
         break;