Skip to content

Commit 044bd3c

Browse files
committed
init/deinit need to be optional for post lib
1 parent 4e192db commit 044bd3c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/afl-fuzz-init.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -311,22 +311,17 @@ void setup_post(afl_state_t *afl) {
311311
mutator->afl_custom_init = dlsym(dh, "afl_postprocess_init");
312312
if (!mutator->afl_custom_init) {
313313

314-
FATAL("Symbol 'afl_postprocess_init' not found.");
314+
WARNF("optional symbol 'afl_postprocess_init' not found.");
315315

316316
}
317317

318318
mutator->afl_custom_deinit = dlsym(dh, "afl_postprocess_deinit");
319319
if (!mutator->afl_custom_post_process) {
320320

321-
FATAL("Symbol 'afl_postprocess_deinit' not found.");
321+
WARNF("optional symbol 'afl_postprocess_deinit' not found.");
322322

323323
}
324324

325-
/* Do a quick test. It's better to segfault now than later =) */
326-
327-
mutator->data = mutator->afl_custom_init(afl, rand_below(afl, 0xFFFFFFFF));
328-
if (!mutator->data) { FATAL("Could not initialize post handler."); }
329-
330325
afl->post_library_mutator = mutator;
331326

332327
OKF("Postprocessor installed successfully.");

0 commit comments

Comments
 (0)