Skip to content

Commit

Permalink
Fix two small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxammann committed Feb 8, 2024
1 parent 8b5e502 commit 51985a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/docs/fuzzing/c-cpp/10-libfuzzer/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ Next, we configure and compile libpng as a static library without linking libFuz
export CC=clang CFLAGS="-fsanitize=fuzzer-no-link -fsanitize=address" # Set C compiler and the flag for fuzzing
export CXX=clang++ CXXFLAGS="$CFLAGS" # Set C++ compiler and use C flags
./configure --enable-shared=no # Configure to compile a static library
make # Run compilation
make # Run compilation
```

By default, the configuration script sets the optimization level to `-O2`, which is what we recommend in the [Compile a Fuzz test section](#compile-a-fuzz-test).
Expand Down
2 changes: 1 addition & 1 deletion content/docs/fuzzing/rust/10-cargo-fuzz/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ We look now for examples, unit tests, or integration tests in the project that m
The following code shows the harness and the entrypoint, stored at `fuzz/fuzz_targets/fuzz_target_1.rs` for cargo-fuzz.

{{< customFigure "Harness for the ogg library" >}}
```
```Rust
#![no_main]

use ogg::{PacketReader, PacketWriter};
Expand Down

0 comments on commit 51985a8

Please sign in to comment.