mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-15 03:18:07 +00:00
debug test for rng
This commit is contained in:
@ -334,7 +334,7 @@ u8 trim_case_custom(afl_state_t *afl, struct queue_entry *q, u8 *in_buf,
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
unsuccessful_trimming:
|
unsuccessful_trimming:
|
||||||
|
|
||||||
/* Tell the custom mutator that the trimming was unsuccessful */
|
/* Tell the custom mutator that the trimming was unsuccessful */
|
||||||
afl->stage_cur = mutator->afl_custom_post_trim(mutator->data, 0);
|
afl->stage_cur = mutator->afl_custom_post_trim(mutator->data, 0);
|
||||||
|
@ -1048,6 +1048,12 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef RAND_TEST_VALUES
|
||||||
|
u32 counter;
|
||||||
|
for (counter = 0; counter < 100000; counter++)
|
||||||
|
printf("DEBUG: rand %06d is %u\n", counter, rand_below(afl, 65536));
|
||||||
|
#endif
|
||||||
|
|
||||||
setup_custom_mutators(afl);
|
setup_custom_mutators(afl);
|
||||||
|
|
||||||
setup_cmdline_file(afl, argv + optind);
|
setup_cmdline_file(afl, argv + optind);
|
||||||
|
Reference in New Issue
Block a user