From 51985a842998f2f52e694f9512aaf8a5817a56c8 Mon Sep 17 00:00:00 2001 From: Max Ammann Date: Thu, 8 Feb 2024 17:13:11 +0000 Subject: [PATCH] Fix two small bugs --- content/docs/fuzzing/c-cpp/10-libfuzzer/index.md | 2 +- content/docs/fuzzing/rust/10-cargo-fuzz/index.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/fuzzing/c-cpp/10-libfuzzer/index.md b/content/docs/fuzzing/c-cpp/10-libfuzzer/index.md index 2d6f180..6d1b51b 100644 --- a/content/docs/fuzzing/c-cpp/10-libfuzzer/index.md +++ b/content/docs/fuzzing/c-cpp/10-libfuzzer/index.md @@ -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). diff --git a/content/docs/fuzzing/rust/10-cargo-fuzz/index.md b/content/docs/fuzzing/rust/10-cargo-fuzz/index.md index 6f419d5..41d42b1 100644 --- a/content/docs/fuzzing/rust/10-cargo-fuzz/index.md +++ b/content/docs/fuzzing/rust/10-cargo-fuzz/index.md @@ -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};