mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
fixed gcc analyzer warnings
This commit is contained in:
@ -131,6 +131,11 @@ static void edit_params(int argc, char **argv) {
|
||||
if (!tmp_dir) { tmp_dir = "/tmp"; }
|
||||
|
||||
as_params = ck_alloc((argc + 32) * sizeof(u8 *));
|
||||
if (unlikely((argc + 32) < argc || !as_params)) {
|
||||
|
||||
FATAL("Too many parameters passed to as");
|
||||
|
||||
}
|
||||
|
||||
as_params[0] = afl_as ? afl_as : (u8 *)"as";
|
||||
|
||||
|
Reference in New Issue
Block a user