mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 02:58:08 +00:00
tiny scan-build nags fixed
This commit is contained in:
Submodule qemu_mode/qemuafl updated: 5400ce883a...21ff343837
@ -586,7 +586,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
if (afl->timeout_given) { FATAL("Multiple -t options not supported"); }
|
||||
|
||||
if (sscanf(optarg, "%u%c", &afl->fsrv.exec_tmout, &suffix) < 1 ||
|
||||
if (!optarg || sscanf(optarg, "%u%c", &afl->fsrv.exec_tmout, &suffix) < 1 ||
|
||||
optarg[0] == '-') {
|
||||
|
||||
FATAL("Bad syntax used for -t");
|
||||
@ -768,7 +768,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
case 'V': {
|
||||
|
||||
afl->most_time_key = 1;
|
||||
if (sscanf(optarg, "%llu", &afl->most_time) < 1 || optarg[0] == '-') {
|
||||
if (!optarg || sscanf(optarg, "%llu", &afl->most_time) < 1 || optarg[0] == '-') {
|
||||
|
||||
FATAL("Bad syntax used for -V");
|
||||
|
||||
@ -779,7 +779,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
case 'E': {
|
||||
|
||||
afl->most_execs_key = 1;
|
||||
if (sscanf(optarg, "%llu", &afl->most_execs) < 1 || optarg[0] == '-') {
|
||||
if (!optarg || sscanf(optarg, "%llu", &afl->most_execs) < 1 || optarg[0] == '-') {
|
||||
|
||||
FATAL("Bad syntax used for -E");
|
||||
|
||||
|
Submodule unicorn_mode/unicornafl updated: 8cca4801ad...1c88501b43
Reference in New Issue
Block a user