[llvm] r292286 - [libFuzzer] copy the options inside MutationDispatcher to avoid use-after-scope in mutator tests
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 15:05:07 PST 2017
Author: kcc
Date: Tue Jan 17 17:05:07 2017
New Revision: 292286
URL: http://llvm.org/viewvc/llvm-project?rev=292286&view=rev
Log:
[libFuzzer] copy the options inside MutationDispatcher to avoid use-after-scope in mutator tests
Modified:
llvm/trunk/lib/Fuzzer/FuzzerMutate.h
Modified: llvm/trunk/lib/Fuzzer/FuzzerMutate.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerMutate.h?rev=292286&r1=292285&r2=292286&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerMutate.h (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerMutate.h Tue Jan 17 17:05:07 2017
@@ -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;
More information about the llvm-commits
mailing list