mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
renamed duplicated func names
This commit is contained in:
@ -214,7 +214,7 @@ static s32 write_to_file(u8 *path, u8 *mem, u32 len) {
|
||||
/* Execute target application. Returns 0 if the changes are a dud, or
|
||||
1 if they should be kept. */
|
||||
|
||||
static u8 run_target(afl_forkserver_t *fsrv, char **argv, u8 *mem, u32 len,
|
||||
static u8 tmin_run_target(afl_forkserver_t *fsrv, char **argv, u8 *mem, u32 len,
|
||||
u8 first_run) {
|
||||
|
||||
afl_fsrv_write_to_testcase(fsrv, mem, len);
|
||||
@ -336,7 +336,7 @@ static void minimize(afl_forkserver_t *fsrv, char **argv) {
|
||||
memset(tmp_buf + set_pos, '0', use_len);
|
||||
|
||||
u8 res;
|
||||
res = run_target(fsrv, argv, tmp_buf, in_len, 0);
|
||||
res = tmin_run_target(fsrv, argv, tmp_buf, in_len, 0);
|
||||
|
||||
if (res) {
|
||||
|
||||
@ -409,7 +409,7 @@ next_del_blksize:
|
||||
/* Tail */
|
||||
memcpy(tmp_buf + del_pos, in_data + del_pos + del_len, tail_len);
|
||||
|
||||
res = run_target(fsrv, argv, tmp_buf, del_pos + tail_len, 0);
|
||||
res = tmin_run_target(fsrv, argv, tmp_buf, del_pos + tail_len, 0);
|
||||
|
||||
if (res) {
|
||||
|
||||
@ -472,7 +472,7 @@ next_del_blksize:
|
||||
for (r = 0; r < in_len; r++)
|
||||
if (tmp_buf[r] == i) tmp_buf[r] = '0';
|
||||
|
||||
res = run_target(fsrv, argv, tmp_buf, in_len, 0);
|
||||
res = tmin_run_target(fsrv, argv, tmp_buf, in_len, 0);
|
||||
|
||||
if (res) {
|
||||
|
||||
@ -508,7 +508,7 @@ next_del_blksize:
|
||||
if (orig == '0') continue;
|
||||
tmp_buf[i] = '0';
|
||||
|
||||
res = run_target(fsrv, argv, tmp_buf, in_len, 0);
|
||||
res = tmin_run_target(fsrv, argv, tmp_buf, in_len, 0);
|
||||
|
||||
if (res) {
|
||||
|
||||
@ -1036,7 +1036,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
ACTF("Performing dry run (mem limit = %llu MB, timeout = %u ms%s)...",
|
||||
fsrv->mem_limit, fsrv->exec_tmout, edges_only ? ", edges only" : "");
|
||||
|
||||
run_target(fsrv, use_argv, in_data, in_len, 1);
|
||||
tmin_run_target(fsrv, use_argv, in_data, in_len, 1);
|
||||
|
||||
if (hang_mode && !fsrv->last_run_timed_out)
|
||||
FATAL(
|
||||
|
Reference in New Issue
Block a user