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
A more complex example that triggers a use-after-free bug when the input parameters satisfy certain criteria. In this example, the checks are more complex and involve Base64 encoding and XORing with constant value, making it more challenging to find the correct combination of input parameters that trigger the bug.
18
+
Execute with:
19
+
```bash
20
+
cifuzz run complex_checks_fuzz_test
21
+
```
14
22
*[Stateful Example](src/state_example):
15
23
An example that demonstrates the challenges of creating high-quality fuzz tests for complex projects with a large public API. This fuzz test was created with an early version of Code Intelligence auto-generation features, but it is still an excellent example on how to test a large API that keeps state between the calls.
An example that is build on top of the [Structure Aware Inputs Example](src/advanced_examples/explore_me.cpp#L8) and shows how to utilize custom mutators to change how the inputs are mutated.
36
+
Execute with:
37
+
```bash
38
+
cifuzz run custom_mutator_example_checks_fuzz_test
39
+
```
40
+
41
+
42
+
To execute all fuzz tests at the same time, or calculate the code coverage for all, just skip the fuzz target name. Like:
43
+
```bash
44
+
cifuzz run
45
+
```
46
+
or:
47
+
```bash
48
+
cifuzz coverage
49
+
```
21
50
22
51
To use the devcontainer environment you need to export your cifuzz download token to a environment var called "CIFUZZ_CREDENTIALS" like `export CIFUZZ_CREDENTIALS=[my_token]`.
0 commit comments