Skip to content

Commit

Permalink
[libFuzzer] copy the options inside MutationDispatcher to avoid use-a…
Browse files Browse the repository at this point in the history
…fter-scope in mutator tests

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292286 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
kcc committed Jan 17, 2017
1 parent f4d04d4 commit d4ebdc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Fuzzer/FuzzerMutate.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include "FuzzerDefs.h"
#include "FuzzerDictionary.h"
#include "FuzzerOptions.h"
#include "FuzzerRandom.h"

namespace fuzzer {
Expand Down Expand Up @@ -115,7 +116,7 @@ class MutationDispatcher {
const uint8_t *Data, size_t Size);

Random &Rand;
const FuzzingOptions &Options;
const FuzzingOptions Options;

// Dictionary provided by the user via -dict=DICT_FILE.
Dictionary ManualDictionary;
Expand Down

0 comments on commit d4ebdc1

Please sign in to comment.