mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
argv fuzzing afl-fuzz-inl.h: apply patch from issue#195
@dpmdpm2: Thanks
This commit is contained in:
parent
5a114fd840
commit
afb23f09cf
@ -53,7 +53,7 @@
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define MAX_CMDLINE_LEN 100000
|
#define MAX_CMDLINE_LEN 100000
|
||||||
#define MAX_CMDLINE_PAR 1000
|
#define MAX_CMDLINE_PAR 50000
|
||||||
|
|
||||||
static char** afl_init_argv(int* argc) {
|
static char** afl_init_argv(int* argc) {
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ static char** afl_init_argv(int* argc) {
|
|||||||
|
|
||||||
if (read(0, in_buf, MAX_CMDLINE_LEN - 2) < 0) {}
|
if (read(0, in_buf, MAX_CMDLINE_LEN - 2) < 0) {}
|
||||||
|
|
||||||
while (*ptr) {
|
while (*ptr && rc < MAX_CMDLINE_PAR) {
|
||||||
|
|
||||||
ret[rc] = ptr;
|
ret[rc] = ptr;
|
||||||
if (ret[rc][0] == 0x02 && !ret[rc][1]) ret[rc]++;
|
if (ret[rc][0] == 0x02 && !ret[rc][1]) ret[rc]++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user