@@ -22,7 +22,7 @@ TEST(Fuzzer, CrossOver) {
2222 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
2323 fuzzer::EF = t.get ();
2424 Random Rand (0 );
25- MutationDispatcher MD (Rand);
25+ MutationDispatcher MD (Rand, {} );
2626 Unit A ({0 , 1 , 2 }), B ({5 , 6 , 7 });
2727 Unit C;
2828 Unit Expected[] = {
@@ -100,7 +100,7 @@ void TestEraseByte(Mutator M, int NumIter) {
100100 uint8_t REM6[8 ] = {0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x77 };
101101 uint8_t REM7[8 ] = {0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 };
102102 Random Rand (0 );
103- MutationDispatcher MD (Rand);
103+ MutationDispatcher MD (Rand, {} );
104104 int FoundMask = 0 ;
105105 for (int i = 0 ; i < NumIter; i++) {
106106 uint8_t T[8 ] = {0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 , 0x77 };
@@ -128,7 +128,7 @@ void TestInsertByte(Mutator M, int NumIter) {
128128 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
129129 fuzzer::EF = t.get ();
130130 Random Rand (0 );
131- MutationDispatcher MD (Rand);
131+ MutationDispatcher MD (Rand, {} );
132132 int FoundMask = 0 ;
133133 uint8_t INS0[8 ] = {0xF1 , 0x00 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 };
134134 uint8_t INS1[8 ] = {0x00 , 0xF2 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 };
@@ -164,7 +164,7 @@ void TestChangeByte(Mutator M, int NumIter) {
164164 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
165165 fuzzer::EF = t.get ();
166166 Random Rand (0 );
167- MutationDispatcher MD (Rand);
167+ MutationDispatcher MD (Rand, {} );
168168 int FoundMask = 0 ;
169169 uint8_t CH0[8 ] = {0xF0 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 , 0x77 };
170170 uint8_t CH1[8 ] = {0x00 , 0xF1 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 , 0x77 };
@@ -200,7 +200,7 @@ void TestChangeBit(Mutator M, int NumIter) {
200200 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
201201 fuzzer::EF = t.get ();
202202 Random Rand (0 );
203- MutationDispatcher MD (Rand);
203+ MutationDispatcher MD (Rand, {} );
204204 int FoundMask = 0 ;
205205 uint8_t CH0[8 ] = {0x01 , 0x11 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 , 0x77 };
206206 uint8_t CH1[8 ] = {0x00 , 0x13 , 0x22 , 0x33 , 0x44 , 0x55 , 0x66 , 0x77 };
@@ -236,7 +236,7 @@ void TestShuffleBytes(Mutator M, int NumIter) {
236236 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
237237 fuzzer::EF = t.get ();
238238 Random Rand (0 );
239- MutationDispatcher MD (Rand);
239+ MutationDispatcher MD (Rand, {} );
240240 int FoundMask = 0 ;
241241 uint8_t CH0[7 ] = {0x00 , 0x22 , 0x11 , 0x33 , 0x44 , 0x55 , 0x66 };
242242 uint8_t CH1[7 ] = {0x11 , 0x00 , 0x33 , 0x22 , 0x44 , 0x55 , 0x66 };
@@ -266,7 +266,7 @@ void TestAddWordFromDictionary(Mutator M, int NumIter) {
266266 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
267267 fuzzer::EF = t.get ();
268268 Random Rand (0 );
269- MutationDispatcher MD (Rand);
269+ MutationDispatcher MD (Rand, {} );
270270 uint8_t Word1[4 ] = {0xAA , 0xBB , 0xCC , 0xDD };
271271 uint8_t Word2[3 ] = {0xFF , 0xEE , 0xEF };
272272 MD.AddWordToManualDictionary (Word (Word1, sizeof (Word1)));
@@ -308,7 +308,7 @@ void TestAddWordFromDictionaryWithHint(Mutator M, int NumIter) {
308308 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
309309 fuzzer::EF = t.get ();
310310 Random Rand (0 );
311- MutationDispatcher MD (Rand);
311+ MutationDispatcher MD (Rand, {} );
312312 uint8_t W[] = {0xAA , 0xBB , 0xCC , 0xDD , 0xFF , 0xEE , 0xEF };
313313 size_t PosHint = 7777 ;
314314 MD.AddWordToAutoDictionary (Word (W, sizeof (W)), PosHint);
@@ -337,7 +337,7 @@ void TestChangeASCIIInteger(Mutator M, int NumIter) {
337337 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
338338 fuzzer::EF = t.get ();
339339 Random Rand (0 );
340- MutationDispatcher MD (Rand);
340+ MutationDispatcher MD (Rand, {} );
341341
342342 uint8_t CH0[8 ] = {' 1' , ' 2' , ' 3' , ' 4' , ' 5' , ' 6' , ' 7' , ' 7' };
343343 uint8_t CH1[8 ] = {' 1' , ' 2' , ' 3' , ' 4' , ' 5' , ' 6' , ' 7' , ' 9' };
@@ -431,9 +431,8 @@ TEST(Corpus, Distribution) {
431431 std::unique_ptr<ExternalFunctions> t (new ExternalFunctions ());
432432 fuzzer::EF = t.get ();
433433 Random Rand (0 );
434- MutationDispatcher MD (Rand);
435- Fuzzer::FuzzingOptions Options;
436- Fuzzer Fuzz (LLVMFuzzerTestOneInput, MD, Options);
434+ MutationDispatcher MD (Rand, {});
435+ Fuzzer Fuzz (LLVMFuzzerTestOneInput, MD, {});
437436 size_t N = 10 ;
438437 size_t TriesPerUnit = 1 <<20 ;
439438 for (size_t i = 0 ; i < N; i++) {
0 commit comments