mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 09:11:34 +00:00
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
This commit is contained in:
commit
a32c671ac9
@ -162,7 +162,7 @@ static void classify_counts(u8* mem, const u8* map) {
|
||||
|
||||
static void at_exit_handler(void) {
|
||||
|
||||
if (out_file) unlink(out_file); /* Ignore errors */
|
||||
if (stdin_file) unlink(stdin_file);
|
||||
|
||||
}
|
||||
|
||||
@ -949,7 +949,7 @@ int main(int argc, char** argv, char** envp) {
|
||||
|
||||
}
|
||||
|
||||
stdin_file = alloc_printf("%s/.afl-tmin-temp-%u", use_dir, getpid());
|
||||
stdin_file = alloc_printf("%s/.afl-showmap-temp-%u", use_dir, getpid());
|
||||
unlink(stdin_file);
|
||||
atexit(at_exit_handler);
|
||||
out_fd = open(stdin_file, O_RDWR | O_CREAT | O_EXCL, 0600);
|
||||
@ -1014,6 +1014,13 @@ int main(int argc, char** argv, char** envp) {
|
||||
tcnt, highest, total, out_file);
|
||||
|
||||
}
|
||||
|
||||
if (stdin_file) {
|
||||
|
||||
unlink(stdin_file);
|
||||
stdin_file = NULL;
|
||||
|
||||
}
|
||||
|
||||
exit(child_crashed * 2 + child_timed_out);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user