/external/AFLplusplus/src/ |
D | afl-sharedmem.c | 199 if (shm->g_shm_fd == -1) { PFATAL("shm_open() failed"); } in afl_shm_init() 204 PFATAL("setup_shm(): ftruncate() failed"); in afl_shm_init() 217 PFATAL("mmap() failed"); in afl_shm_init() 228 if (shm->map == (void *)-1 || !shm->map) PFATAL("mmap() failed"); in afl_shm_init() 239 if (shm->cmplog_g_shm_fd == -1) { PFATAL("shm_open() failed"); } in afl_shm_init() 244 PFATAL("setup_shm(): cmplog ftruncate() failed"); in afl_shm_init() 257 PFATAL("mmap() failed"); in afl_shm_init() 270 PFATAL("cmplog mmap() failed"); in afl_shm_init() 284 PFATAL("shmget() failed, try running afl-system-config"); in afl_shm_init() 296 PFATAL("shmget() failed, try running afl-system-config"); in afl_shm_init() [all …]
|
D | afl-gotcpu.c | 159 if (fr < 0) { PFATAL("fork failed"); } in main() 173 if (c == NULL) PFATAL("cpuset_create failed"); in main() 181 PFATAL("thread_policy_set failed"); in main() 185 if (pset_create(&c)) PFATAL("pset_create failed"); in main() 187 if (pset_assign(c, i, NULL)) PFATAL("pset_assign failed"); in main() 192 PFATAL("pthread_setaffinity_np failed"); in main() 197 PFATAL("pthread_setaffinity_np failed"); in main() 203 if (pset_bind(c, P_PID, getpid(), NULL)) PFATAL("pset_bind failed"); in main() 211 PFATAL("sched_setaffinity failed for cpu %d", i); in main() 242 if (waitpid(-1, &ret, 0) < 0) { PFATAL("waitpid failed"); } in main()
|
D | afl-fuzz-init.c | 54 if (c == NULL) { PFATAL("cpuset_create failed"); } in bind_cpu() 60 if (pset_assign(c, cpuid, NULL)) { PFATAL("pset_assign failed"); } in bind_cpu() 561 if (first) PFATAL("Unable to access '%s'", fn2); 702 PFATAL("Unable to open '%s'", dir); 730 PFATAL("Unable to access '%s'", fn2); 880 if (fd < 0) { PFATAL("Unable to open '%s'", q->fname); } 1234 if (sfd < 0) { PFATAL("Unable to open '%s'", old_path); } 1237 if (dfd < 0) { PFATAL("Unable to create '%s'", new_path); } 1247 if (i < 0) { PFATAL("read() failed"); } 1473 if (unlink(fname)) { PFATAL("Unable to delete '%s'", fname); } [all …]
|
D | afl-fuzz-extras.c | 67 if (!f) { PFATAL("Unable to open '%s'", fname); } in load_extras_file() 179 if (unlikely(!afl->extras)) { PFATAL("alloc"); } in load_extras_file() 183 if (!wptr) { PFATAL("no mem for data"); } in load_extras_file() 324 PFATAL("Unable to open '%s'", dir); in load_extras() 338 PFATAL("Unable to access '%s'", fn); in load_extras() 366 if (unlikely(!afl->extras)) { PFATAL("alloc"); } in load_extras() 373 if (fd < 0) { PFATAL("Unable to open '%s'", fn); } in load_extras() 411 if (unlikely(!afl->extras)) { PFATAL("alloc"); } in add_extra_nocheck() 750 if (fd < 0) { PFATAL("Unable to create '%s'", fn); } in save_auto() 777 if (errno != ENOENT) { PFATAL("Unable to open '%s'", fn); } in load_auto() [all …]
|
D | afl-as.c | 275 if (!inf) { PFATAL("Unable to read '%s'", input_file); } 285 if (outfd < 0) { PFATAL("Unable to write to '%s'", modified_file); } 289 if (!outf) { PFATAL("fdopen() failed"); } 648 if (pid < 0) { PFATAL("fork() failed"); } 650 if (waitpid(pid, &status, 0) <= 0) { PFATAL("waitpid() failed"); }
|
D | afl-fuzz-queue.c | 256 if (fd < 0) { PFATAL("Unable to create '%s'", fn); } in mark_as_det_done() 279 if (fd < 0) { PFATAL("Unable to create '%s'", fn); } in mark_as_variable() 307 if (fd < 0) { PFATAL("Unable to create '%s'", fn); } in mark_as_redundant() 312 if (unlink(fn)) { PFATAL("Unable to remove '%s'", fn); } in mark_as_redundant() 558 if (unlikely(!queue_buf)) { PFATAL("alloc"); } in add_to_queue() 1039 PFATAL("Unknown Power Schedule"); in calculate_score() 1090 PFATAL("Unable to malloc '%s' with len %u", q->fname, len); in queue_testcase_retake() 1098 if (unlikely(fd < 0)) { PFATAL("Unable to open '%s'", q->fname); } in queue_testcase_retake() 1160 PFATAL("Unable to malloc '%s' with len %u", q->fname, len); in queue_testcase_get() 1166 if (unlikely(fd < 0)) { PFATAL("Unable to open '%s'", q->fname); } in queue_testcase_get() [all …]
|
D | afl-showmap.c | 251 if (fd < 0) { PFATAL("Unable to open '%s'", out_file); } in write_results_to_file() 256 if (fd < 0) { PFATAL("Unable to open stdout"); } in write_results_to_file() 262 if (fd < 0) { PFATAL("Unable to create '%s'", outfile); } in write_results_to_file() 281 if (!f) { PFATAL("fdopen() failed"); } in write_results_to_file() 450 if (fsrv->child_pid < 0) { PFATAL("fork() failed"); } in showmap_run_target() 463 PFATAL("Descriptor initialization failed"); in showmap_run_target() 737 PFATAL("Unable to access '%s'", fn2); in execute_testcases() 1284 if (fsrv->dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); } in main() 1304 PFATAL("cannot create output directory %s", out_file); in main() 1323 if (fsrv->out_fd < 0) { PFATAL("Unable to create '%s'", out_file); } in main()
|
D | afl-common.c | 58 if (fd < 0) { PFATAL("Unable to open '%s'", fn); } in check_binary_signatures() 60 if (fstat(fd, &st) < 0) { PFATAL("Unable to fstat '%s'", fn); } in check_binary_signatures() 63 if (f_data == MAP_FAILED) { PFATAL("Unable to mmap file '%s'", fn); } in check_binary_signatures() 105 if (munmap(f_data, f_len)) { PFATAL("unmap() failed"); } in check_binary_signatures() 115 if (getcwd(cwd, (size_t)sizeof(cwd)) == NULL) { PFATAL("getcwd() failed"); } in detect_file_args() 827 if (fd < 0) { PFATAL("Unable to open '%s'", fname); } in read_bitmap() 1223 if (fd < 0) { PFATAL("Unable to create '%s'", fn); } in create_ffile() 1227 if (!f) { PFATAL("fdopen() failed"); } in create_ffile() 1241 if (fd < 0) { PFATAL("Unable to create '%s'", fn); } in create_file()
|
D | afl-fuzz-run.c | 90 PFATAL("write to mutation file failed: %s", fn); in write_to_testcase() 177 if (unlikely(!mem_trimmed)) { PFATAL("alloc"); } in write_with_gap() 284 if (fd < 0) { PFATAL("Unable to create '%s'", afl->fsrv.out_file); } in write_with_gap() 306 if (ftruncate(fd, new_size)) { PFATAL("ftruncate() failed"); } in write_with_gap() 586 if (!sd) { PFATAL("Unable to open '%s'", afl->sync_dir); } in sync_fuzzers() 665 if (id_fd < 0) { PFATAL("Unable to create '%s'", qd_synced_path); } in sync_fuzzers() 728 if (mem == MAP_FAILED) { PFATAL("Unable to mmap '%s'", path); } in sync_fuzzers() 930 if (fd < 0) { PFATAL("Unable to create '%s'", q->fname); } in trim_case() 945 if (fd < 0) { PFATAL("Unable to create '%s'", q->fname); } in trim_case()
|
D | afl-forkserver.c | 264 if (child_pid < 0) { PFATAL("Fork failed"); } in afl_fauxsrv_execv() 582 if (pipe(st_pipe) || pipe(ctl_pipe)) { PFATAL("pipe() failed"); } in afl_fsrv_start() 587 if (fsrv->fsrv_pid < 0) { PFATAL("fork() failed"); } in afl_fsrv_start() 667 if (dup2(ctl_pipe[0], FORKSRV_FD) < 0) { PFATAL("dup2() failed"); } in afl_fsrv_start() 668 if (dup2(st_pipe[1], FORKSRV_FD + 1) < 0) { PFATAL("dup2() failed"); } in afl_fsrv_start() 1042 if (waitpid(fsrv->fsrv_pid, &status, 0) <= 0) { PFATAL("waitpid() failed"); } in afl_fsrv_start() 1364 if (fd < 0) { PFATAL("Unable to create '%s'", fsrv->out_file); } in afl_fsrv_write_to_testcase() 1385 if (ftruncate(fd, len)) { PFATAL("ftruncate() failed"); } in afl_fsrv_write_to_testcase()
|
D | afl-ld-lto.c | 340 if (pid < 0) PFATAL("fork() failed"); in main() 342 if (waitpid(pid, &status, 0) <= 0) PFATAL("waitpid() failed"); in main()
|
D | afl-fuzz-bitmap.c | 47 if (fd < 0) { PFATAL("Unable to open '%s'", fname); } in write_bitmap() 512 if (unlikely(fd < 0)) { PFATAL("Unable to create '%s'", queue_fn); } in save_if_interesting() 798 if (unlikely(fd < 0)) { PFATAL("Unable to create '%s'", fn); } in save_if_interesting() 809 if (unlikely(fd < 0)) { PFATAL("Unable to create '%s'", fn_log); } in save_if_interesting()
|
D | afl-fuzz-python.c | 99 if (unlikely(!*out_buf)) { PFATAL("alloc"); } in fuzz_py() 152 if (!py) { PFATAL("Could not allocate memory for python mutator!"); } in init_py_module() 639 if (unlikely(!*out_buf)) { PFATAL("alloc"); } in trim_py() 705 if (unlikely(!*out_buf)) { PFATAL("alloc"); } in havoc_mutation_py()
|
D | afl-tmin.c | 218 if (fd < 0) { PFATAL("Unable to open '%s'", in_file); } in read_initial_file() 249 if (ret < 0) { PFATAL("Unable to create '%s'", path); } in write_to_file() 650 if (fsrv->dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); } in set_up_environment() 673 if (fsrv->out_fd < 0) { PFATAL("Unable to create '%s'", out_file); } in set_up_environment()
|
D | afl-fuzz-one.c | 462 if (unlikely(!out_buf)) { PFATAL("alloc"); } in fuzz_one_original() 832 if (unlikely(!eff_map)) { PFATAL("alloc"); } in fuzz_one_original() 1686 if (unlikely(!ex_tmp)) { PFATAL("alloc"); } in fuzz_one_original() 1800 if (unlikely(!ex_tmp)) { PFATAL("alloc"); } in fuzz_one_original() 2128 if (unlikely(!afl->out_buf)) { PFATAL("alloc"); } in fuzz_one_original() 2452 if (unlikely(!new_buf)) { PFATAL("alloc"); } in fuzz_one_original() 2492 if (unlikely(!new_buf)) { PFATAL("alloc"); } in fuzz_one_original() 2640 if (unlikely(!new_buf)) { PFATAL("alloc"); } in fuzz_one_original() 2725 if (unlikely(!out_buf)) { PFATAL("alloc"); } in fuzz_one_original() 2790 if (unlikely(!out_buf)) { PFATAL("alloc"); } in fuzz_one_original() [all …]
|
D | afl-analyze.c | 182 if (fd < 0) { PFATAL("Unable to open '%s'", in_file); } in read_initial_file() 634 if (fsrv.dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); } in set_up_environment() 656 if (fsrv.out_fd < 0) { PFATAL("Unable to create '%s'", fsrv.out_file); } in set_up_environment()
|
D | afl-fuzz-mutators.c | 58 if (stat(fname, &st)) { PFATAL("File %s is gone!", fname); } in run_afl_custom_queue_new_entry() 517 if (fd < 0) { PFATAL("Unable to create '%s'", q->fname); } in trim_case_custom()
|
D | afl-fuzz-statsd.c | 210 if (!close(afl->statsd_sock)) { PFATAL("Cannot close socket"); } in statsd_send_metric()
|
/external/AFLplusplus/utils/afl_network_proxy/ |
D | afl-network-server.c | 112 if (ret < 0) { PFATAL("Unable to create '%s'", path); } in write_to_file() 162 if (fsrv->dev_null_fd < 0) { PFATAL("Unable to open /dev/null"); } in set_up_environment() 183 if (fsrv->out_fd < 0) { PFATAL("Unable to create '%s'", out_file); } in set_up_environment() 328 if (unlikely(!*buf)) { PFATAL("Alloc"); } in recv_testcase() 341 if (unlikely(!*buf)) { PFATAL("Alloc"); } in recv_testcase() 352 if (unlikely(!buf2)) { PFATAL("Alloc"); } in recv_testcase() 402 if ((send_buf = malloc(map_size + 4)) == NULL) PFATAL("malloc"); in main() 540 if (unlikely(!in_data)) { PFATAL("Alloc"); } in main() 570 if ((sock = socket(AF_INET6, SOCK_STREAM, 0)) < 0) PFATAL("socket() failed"); in main() 601 PFATAL("bind() failed"); in main() [all …]
|
D | afl-network-client.c | 250 PFATAL("can not allocate %u memory", max_len + 4); in main() 256 PFATAL("can not allocate %u memory", buf2_len + 8); in main() 266 PFATAL("could not resolve target %s", argv[1]); in main() 335 PFATAL("sending test data failed"); in main() 349 PFATAL("sending test data failed"); in main()
|
/external/AFLplusplus/test/unittests/ |
D | unit_maybe_alloc.c | 99 if (unlikely(!buf)) { PFATAL("alloc"); } in test_null_allocs() 115 if (unlikely(!ptr)) { PFATAL("alloc"); } in test_nonpow2_size() 137 if (unlikely(!ptr)) { PFATAL("alloc"); } in test_zero_size() 156 if (unlikely(!buf_after)) { PFATAL("alloc"); } in test_unchanged_size() 170 if (unlikely(!ptr)) { PFATAL("alloc"); } in test_grow_multiple() 178 if (unlikely(!ptr)) { PFATAL("alloc"); } in test_grow_multiple() 186 if (unlikely(!ptr)) { PFATAL("alloc"); } in test_grow_multiple()
|
/external/AFLplusplus/include/ |
D | debug.h | 319 #define PFATAL(x...) \ macro 339 PFATAL(x); \
|
/external/gflags/src/ |
D | gflags.cc | 1013 #define PFATAL(s) do { perror(s); gflags_exitfunc(1); } while (0) macro 1020 if ((errno = SafeFOpen(&fp, filename, "r")) != 0) PFATAL(filename); in ReadFileIntoString() 1023 if (ferror(fp)) PFATAL(filename); in ReadFileIntoString()
|
/external/AFLplusplus/utils/afl_untracer/ |
D | afl-untracer.c | 730 if ((pid = fork()) == -1) PFATAL("fork failed");
|
/external/AFLplusplus/instrumentation/ |
D | afl-llvm-dict2file.so.cc | 207 if (!of.is_open()) PFATAL("Could not open/create %s.", ptr);
|