[libFuzzer] copy the options inside MutationDispatcher to avoid use-after-scope in mutator tests

llvm-svn: 292286
This commit is contained in:
Kostya Serebryany 2017-01-17 23:05:07 +00:00
parent 33a1a0b001
commit 138ed2b068
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@
#include "FuzzerDefs.h"
#include "FuzzerDictionary.h"
#include "FuzzerOptions.h"
#include "FuzzerRandom.h"
namespace fuzzer {
@ -115,7 +116,7 @@ private:
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;