mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
fixed uaf and warnings
This commit is contained in:
@ -2178,6 +2178,8 @@ void save_cmdline(afl_state_t *afl, u32 argc, char **argv) {
|
||||
|
||||
u32 l = strlen(argv[i]);
|
||||
|
||||
if (!argv[i] || !buf) FATAL("null deref detected");
|
||||
|
||||
memcpy(buf, argv[i], l);
|
||||
buf += l;
|
||||
|
||||
|
Reference in New Issue
Block a user