Lines Matching refs:py_functions
120 py_value = PyObject_CallObject(py->py_functions[PY_FUNC_FUZZ], py_args); in fuzz_py()
175 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_DESCRIBE], py_args); in custom_describe_py()
206 PyObject **py_functions = py->py_functions; in init_py_module() local
223 py_functions[PY_FUNC_INIT] = PyObject_GetAttrString(py_module, "init"); in init_py_module()
224 if (!py_functions[PY_FUNC_INIT]) { in init_py_module()
230 py_functions[PY_FUNC_FUZZ] = PyObject_GetAttrString(py_module, "fuzz"); in init_py_module()
231 if (!py_functions[PY_FUNC_FUZZ]) in init_py_module()
232 py_functions[PY_FUNC_FUZZ] = PyObject_GetAttrString(py_module, "mutate"); in init_py_module()
233 py_functions[PY_FUNC_DESCRIBE] = in init_py_module()
235 py_functions[PY_FUNC_FUZZ_COUNT] = in init_py_module()
237 py_functions[PY_FUNC_POST_PROCESS] = in init_py_module()
239 py_functions[PY_FUNC_INIT_TRIM] = in init_py_module()
241 py_functions[PY_FUNC_POST_TRIM] = in init_py_module()
243 py_functions[PY_FUNC_TRIM] = PyObject_GetAttrString(py_module, "trim"); in init_py_module()
244 py_functions[PY_FUNC_HAVOC_MUTATION] = in init_py_module()
246 py_functions[PY_FUNC_HAVOC_MUTATION_PROBABILITY] = in init_py_module()
248 py_functions[PY_FUNC_QUEUE_GET] = in init_py_module()
250 py_functions[PY_FUNC_FUZZ_SEND] = in init_py_module()
252 py_functions[PY_FUNC_POST_RUN] = in init_py_module()
254 py_functions[PY_FUNC_SPLICE_OPTOUT] = in init_py_module()
256 if (py_functions[PY_FUNC_SPLICE_OPTOUT]) { afl->custom_splice_optout = 1; } in init_py_module()
257 py_functions[PY_FUNC_QUEUE_NEW_ENTRY] = in init_py_module()
259 py_functions[PY_FUNC_INTROSPECTION] = in init_py_module()
261 py_functions[PY_FUNC_DEINIT] = PyObject_GetAttrString(py_module, "deinit"); in init_py_module()
262 if (!py_functions[PY_FUNC_DEINIT]) in init_py_module()
267 py_functions[PY_FUNC_INIT_TRIM] = NULL; in init_py_module()
268 py_functions[PY_FUNC_POST_TRIM] = NULL; in init_py_module()
269 py_functions[PY_FUNC_TRIM] = NULL; in init_py_module()
300 Py_XDECREF(py->py_functions[i]); in finalize_py_module()
317 if (py_mutator->py_functions[PY_FUNC_INIT] == NULL) { return; } in init_py()
339 PyObject_CallObject(py_mutator->py_functions[PY_FUNC_INIT], py_args); in init_py()
359 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_DEINIT], py_args); in deinit_py()
408 PyObject **py_functions = py_mutator->py_functions; in load_custom_mutator_py() local
410 if (py_functions[PY_FUNC_INIT]) { mutator->afl_custom_init = unsupported; } in load_custom_mutator_py()
412 if (py_functions[PY_FUNC_DEINIT]) { mutator->afl_custom_deinit = deinit_py; } in load_custom_mutator_py()
414 if (py_functions[PY_FUNC_FUZZ]) { mutator->afl_custom_fuzz = fuzz_py; } in load_custom_mutator_py()
416 if (py_functions[PY_FUNC_DESCRIBE]) { in load_custom_mutator_py()
422 if (py_functions[PY_FUNC_POST_PROCESS]) { in load_custom_mutator_py()
428 if (py_functions[PY_FUNC_INIT_TRIM]) { in load_custom_mutator_py()
434 if (py_functions[PY_FUNC_FUZZ_COUNT]) { in load_custom_mutator_py()
440 if (py_functions[PY_FUNC_POST_TRIM]) { in load_custom_mutator_py()
446 if (py_functions[PY_FUNC_TRIM]) { mutator->afl_custom_trim = trim_py; } in load_custom_mutator_py()
448 if (py_functions[PY_FUNC_HAVOC_MUTATION]) { in load_custom_mutator_py()
454 if (py_functions[PY_FUNC_HAVOC_MUTATION_PROBABILITY]) { in load_custom_mutator_py()
461 if (py_functions[PY_FUNC_QUEUE_GET]) { in load_custom_mutator_py()
467 if (py_functions[PY_FUNC_FUZZ_SEND]) { in load_custom_mutator_py()
473 if (py_functions[PY_FUNC_POST_RUN]) { in load_custom_mutator_py()
479 if (py_functions[PY_FUNC_SPLICE_OPTOUT]) { in load_custom_mutator_py()
486 if (py_functions[PY_FUNC_QUEUE_NEW_ENTRY]) { in load_custom_mutator_py()
493 if (py_functions[PY_FUNC_INTROSPECTION]) { in load_custom_mutator_py()
536 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_POST_PROCESS], in post_process_py()
592 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_INIT_TRIM], py_args); in init_trim_py()
630 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_FUZZ_COUNT], py_args); in fuzz_count_py()
669 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_POST_TRIM], py_args); in post_trim_py()
698 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_TRIM], py_args); in trim_py()
765 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_HAVOC_MUTATION], in havoc_mutation_py()
813 ->py_functions[PY_FUNC_HAVOC_MUTATION_PROBABILITY], in havoc_mutation_probability_py()
838 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_INTROSPECTION], in introspection_py()
887 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_QUEUE_GET], py_args); in queue_get_py()
929 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_FUZZ_SEND], py_args); in fuzz_send_py()
942 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_POST_RUN], py_args); in post_run_py()
1002 ((py_mutator_t *)py_mutator)->py_functions[PY_FUNC_QUEUE_NEW_ENTRY], in queue_new_entry_py()