You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- This creates mocklib.h and mocklib.cpp in fuzzing/mocks
19
+
- Add the mocklib.cpp to the compiler options and also add the include path fuzzing/mocks
20
+
- In the fuzztest you need to create a FuzzedDataProvider object and give a pointer to it to the mocking library. Add the following to the beginning of the FUZZ function:
21
+
```FuzzedDataProvider fuzz_data(Data, Size);```
22
+
```mocklib_set_data(&fuzz_data);```
23
+
- You also need to include the FuzzedDataProvider.h and mocklib.h in the fuzztest
0 commit comments