diff options
author | Akira Moroo <retrage01@gmail.com> | 2021-11-12 06:01:19 +0000 |
---|---|---|
committer | Akira Moroo <retrage01@gmail.com> | 2021-11-12 06:13:25 +0000 |
commit | c2feee4ed1b35cc590e2beaa595d710b09e1427c (patch) | |
tree | 73b97d5458deeea28aed2836d10c01880f208b3a /src/afl-showmap.c | |
parent | cf0fd0ff3342fe1b9a028dca95b750f730e2afd6 (diff) | |
download | afl++-c2feee4ed1b35cc590e2beaa595d710b09e1427c.tar.gz |
Add platform check for `-A` CoreSight mode
REF: https://github.com/AFLplusplus/AFLplusplus/pull/1156#discussion_r747454306 Signed-off-by: Akira Moroo <retrage01@gmail.com>
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r-- | src/afl-showmap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c index 57737562..0e7d9df6 100644 --- a/src/afl-showmap.c +++ b/src/afl-showmap.c @@ -1069,6 +1069,12 @@ int main(int argc, char **argv_orig, char **envp) { if (fsrv->cs_mode) { FATAL("Multiple -P options not supported"); } + if (!(__aarch64__ && __linux__)) { + + FATAL("-P option is not supported on this platform"); + + } + fsrv->cs_mode = true; break; |