mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-09 00:31:33 +00:00
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:
parent
cf0fd0ff33
commit
c2feee4ed1
@ -997,6 +997,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
if (cs_mode) { FATAL("Multiple -A options not supported"); }
|
if (cs_mode) { FATAL("Multiple -A options not supported"); }
|
||||||
|
|
||||||
|
if (!(__aarch64__ && __linux__)) {
|
||||||
|
|
||||||
|
FATAL("-A option is not supported on this platform");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
cs_mode = 1;
|
cs_mode = 1;
|
||||||
fsrv.cs_mode = cs_mode;
|
fsrv.cs_mode = cs_mode;
|
||||||
break;
|
break;
|
||||||
|
@ -830,6 +830,13 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
case 'A': /* CoreSight mode */
|
case 'A': /* CoreSight mode */
|
||||||
|
|
||||||
if (afl->fsrv.cs_mode) { FATAL("Multiple -A options not supported"); }
|
if (afl->fsrv.cs_mode) { FATAL("Multiple -A options not supported"); }
|
||||||
|
|
||||||
|
if (!(__aarch64__ && __linux__)) {
|
||||||
|
|
||||||
|
FATAL("-A option is not supported on this platform");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
afl->fsrv.cs_mode = 1;
|
afl->fsrv.cs_mode = 1;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
@ -1069,6 +1069,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
if (fsrv->cs_mode) { FATAL("Multiple -P options not supported"); }
|
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;
|
fsrv->cs_mode = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -1040,6 +1040,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
if (fsrv->cs_mode) { FATAL("Multiple -A options not supported"); }
|
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;
|
fsrv->cs_mode = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user