René Kijewski 9b8ace77b4 Fix rust 1.86 clippy warnings
* [`manual_div_ceil`]
* [`sliced_string_as_bytes`]
* Add `cargo.toml` for global clippy settings, e.g. msrv

[`manual_div_ceil`]: <https://rust-lang.github.io/rust-clippy/master/index.html#manual_div_ceil>
[`sliced_string_as_bytes`]: <https://rust-lang.github.io/rust-clippy/master/index.html#sliced_string_as_bytes>
2025-01-31 21:22:33 +01:00
..
2025-01-04 18:25:38 +01:00
2025-01-31 21:22:33 +01:00
2024-08-19 13:31:07 +02:00

Rinja Fuzzing

First install cargo-fuzz and rust-nightly (once):

cargo install cargo-fuzz
rustup install nightly

Then execute in this folder:

RUST_BACKTRACE=1 nice cargo +nightly fuzz run <fuzz_target>

fuzz_target is one out of all, filters, html or parser.

The execution won't stop, but continue until you kill it with ctrl+c. Or until it finds a panic. If the execution found a panic, then a file with the input scenario is written, e.g. fuzz/artifacts/parser/crash-b91ab…. To get more information about the failed scenario, run or debug this command with the given path:

cargo run -- <fuzz_target> fuzz/artifacts/parser/crash-b91ab…

Find more information about fuzzing here: