Use buffer protocol to retrieve result from python post_process (#605)

Saves an extra copy, gives post processing functions more flexibility
This commit is contained in:
Dustin Spicuzza
2020-11-18 14:29:17 -05:00
committed by GitHub
parent b260204b72
commit cd0a25be5e
3 changed files with 28 additions and 12 deletions

View File

@ -326,8 +326,7 @@ typedef struct py_mutator {
u8 * fuzz_buf;
size_t fuzz_size;
u8 * post_process_buf;
size_t post_process_size;
Py_buffer post_process_buf;
u8 * trim_buf;
size_t trim_size;