diff options
author | llzmb <46303940+llzmb@users.noreply.github.com> | 2021-10-10 16:32:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-10 16:32:43 +0200 |
commit | 79d87f8544a0f67537b2169e3f6821f459659f61 (patch) | |
tree | 15bfaef53f95696583ea12396a7e8e98b73f77e1 /custom_mutators/libfuzzer/libfuzzer.inc | |
parent | 228f6c5dad1a593b4113006e587e9885459a53c2 (diff) | |
parent | da865cbb9d289d0f782a1c33d85261903c60d624 (diff) | |
download | afl++-79d87f8544a0f67537b2169e3f6821f459659f61.tar.gz |
Merge branch 'dev' into docs_edit_readme_fix_links
Diffstat (limited to 'custom_mutators/libfuzzer/libfuzzer.inc')
-rw-r--r-- | custom_mutators/libfuzzer/libfuzzer.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/custom_mutators/libfuzzer/libfuzzer.inc b/custom_mutators/libfuzzer/libfuzzer.inc index 01f21dbe..8c4bdbf6 100644 --- a/custom_mutators/libfuzzer/libfuzzer.inc +++ b/custom_mutators/libfuzzer/libfuzzer.inc @@ -2,7 +2,7 @@ extern "C" ATTRIBUTE_INTERFACE void LLVMFuzzerMyInit(int (*Callback)(const uint8_t *Data, size_t Size), unsigned int Seed) { - Random Rand(Seed); + auto *Rand = new Random(Seed); FuzzingOptions Options; Options.Verbosity = 3; Options.MaxLen = 1024000; @@ -30,7 +30,7 @@ LLVMFuzzerMyInit(int (*Callback)(const uint8_t *Data, size_t Size), unsigned int struct EntropicOptions Entropic; Entropic.Enabled = Options.Entropic; EF = new ExternalFunctions(); - auto *MD = new MutationDispatcher(Rand, Options); + auto *MD = new MutationDispatcher(*Rand, Options); auto *Corpus = new InputCorpus(Options.OutputCorpus, Entropic); auto *F = new Fuzzer(Callback, *Corpus, *MD, Options); } |