mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
Fix platform check for -A
CoreSight mode
Signed-off-by: Akira Moroo <retrage01@gmail.com>
This commit is contained in:
parent
c2feee4ed1
commit
feff8191ec
@ -995,14 +995,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
case 'A': /* CoreSight mode */
|
||||
|
||||
#if !defined(__aarch64__) || !defined(__linux__)
|
||||
FATAL("-A option is not supported on this platform");
|
||||
#endif
|
||||
|
||||
if (cs_mode) { FATAL("Multiple -A options not supported"); }
|
||||
|
||||
if (!(__aarch64__ && __linux__)) {
|
||||
|
||||
FATAL("-A option is not supported on this platform");
|
||||
|
||||
}
|
||||
|
||||
cs_mode = 1;
|
||||
fsrv.cs_mode = cs_mode;
|
||||
break;
|
||||
|
@ -829,14 +829,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
case 'A': /* CoreSight mode */
|
||||
|
||||
#if !defined(__aarch64__) || !defined(__linux__)
|
||||
FATAL("-A option is not supported on this platform");
|
||||
#endif
|
||||
|
||||
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;
|
||||
|
||||
break;
|
||||
|
@ -1067,14 +1067,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
* undocumenetd feature "Another afl-cmin specific feature." */
|
||||
case 'P': /* CoreSight mode */
|
||||
|
||||
#if !defined(__aarch64__) || !defined(__linux__)
|
||||
FATAL("-P option is not supported on this platform");
|
||||
#endif
|
||||
|
||||
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;
|
||||
|
||||
|
@ -1038,14 +1038,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
case 'A': /* CoreSight mode */
|
||||
|
||||
#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"); }
|
||||
|
||||
if (!(__aarch64__ && __linux__)) {
|
||||
|
||||
FATAL("-A option is not supported on this platform");
|
||||
|
||||
}
|
||||
|
||||
fsrv->cs_mode = 1;
|
||||
break;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user