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>
This commit is contained in:
Akira Moroo
2021-11-12 06:01:19 +00:00
parent cf0fd0ff33
commit c2feee4ed1
4 changed files with 25 additions and 0 deletions

View File

@ -1040,6 +1040,12 @@ int main(int argc, char **argv_orig, char **envp) {
if (fsrv->cs_mode) { FATAL("Multiple -A options not supported"); }
if (!(__aarch64__ && __linux__)) {
FATAL("-A option is not supported on this platform");
}
fsrv->cs_mode = 1;
break;