mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 03:18:07 +00:00
post_process 0/NULL return support
This commit is contained in:
@ -535,7 +535,16 @@ size_t post_process_py(void *py_mutator, u8 *buf, size_t buf_size,
|
||||
|
||||
Py_DECREF(py_value);
|
||||
|
||||
*out_buf = (u8 *)py->post_process_buf.buf;
|
||||
if (unlikely(py->post_process_buf.len == 0)) {
|
||||
|
||||
*out_buf = NULL;
|
||||
|
||||
} else {
|
||||
|
||||
*out_buf = (u8 *)py->post_process_buf.buf;
|
||||
|
||||
}
|
||||
|
||||
return py->post_process_buf.len;
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user