1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[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 6bb5c42da0
commit 2c7301e47a

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;