libradamsa dlopen

This commit is contained in:
Andrea Fioraldi
2019-11-11 14:32:50 +01:00
parent 66791a5dad
commit cd84339bcc
6 changed files with 86 additions and 18 deletions

View File

@ -24,9 +24,6 @@
*/
#include "afl-fuzz.h"
#include "radamsa.h"
#define RADAMSA_CHANCE 24
/* MOpt */
@ -2285,7 +2282,7 @@ retry_splicing:
radamsa_stage:
if (!use_radamsa)
if (!use_radamsa || !radamsa_mutate_ptr)
goto abandon_entry;
stage_name = "radamsa";
@ -2305,7 +2302,7 @@ radamsa_stage:
u8 *tmp_buf;
for (stage_cur = 0; stage_cur < stage_max; ++stage_cur) {
u32 new_len = radamsa_mutate(save_buf, len, new_buf, max_len, get_rand_seed());
u32 new_len = radamsa_mutate_ptr(save_buf, len, new_buf, max_len, get_rand_seed());
if (new_len) {