Skip to content

Commit 4f93f13

Browse files
kianmengPaulGrandperrin
authored andcommitted
Fix typos
1 parent 2d96806 commit 4f93f13

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ For instance:
188188
* Avoid potential undeterministic behavior from racing threads.
189189
* ...
190190
* Never ever call `std::process::exit()`.
191-
* Disable logging and other unnecessary functionnalities.
191+
* Disable logging and other unnecessary functionalities.
192192
* Try to avoid modifying global state when possible.
193193
* Do not set up your own panic hook when run with `cfg(fuzzing)`
194194

195195

196-
When building with `cargo hfuzz`, the argument `--cfg fuzzing` is passed to `rustc` to allow you to condition the compilation of thoses adaptations thanks to the `cfg` macro like so:
196+
When building with `cargo hfuzz`, the argument `--cfg fuzzing` is passed to `rustc` to allow you to condition the compilation of those adaptations thanks to the `cfg` macro like so:
197197

198198
```rust
199199
#[cfg(fuzzing)]

build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn main() {
3333
let out_dir = env::var("OUT_DIR").unwrap(); // from cargo
3434
let crate_root = env::var("CRATE_ROOT").unwrap(); //from honggfuzz
3535

36-
// clean upsteam honggfuzz directory
36+
// clean upstream honggfuzz directory
3737
let status = Command::new(GNU_MAKE)
3838
.args(&["-C", "honggfuzz", "clean"])
3939
.status()

example/test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ workspace="hfuzz_workspace/example"
2424
rm -rf $workspace
2525
mkdir -p $workspace/input
2626

27-
# fuzz exemple
27+
# fuzz example
2828
cd subdirectory
2929
HFUZZ_RUN_ARGS="-v -N 10000000 --run_time 120 --exit_upon_crash" $CARGO_HFUZZ run example
3030
cd ..

src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
//!
161161
//! Honggfuzz input files (also called "corpus"), defaults to `$HFUZZ_WORKSPACE/{TARGET}/input`.
162162
//!
163-
//! ## Conditionnal compilation
163+
//! ## Conditional compilation
164164
//!
165165
//! Sometimes, it is necessary to make some specific adaptation to your code to yield a better fuzzing efficiency.
166166
//!
@@ -171,11 +171,11 @@
171171
//! - Avoid potential undeterministic behavior from racing threads.
172172
//! - ...
173173
//! - Never ever call `std::process::exit()`.
174-
//! - Disable logging and other unnecessary functionnalities.
174+
//! - Disable logging and other unnecessary functionalities.
175175
//! - Try to avoid modifying global state when possible.
176176
//!
177177
//!
178-
//! When building with `cargo hfuzz`, the argument `--cfg fuzzing` is passed to `rustc` to allow you to condition the compilation of thoses adaptations thanks to the `cfg` macro like so:
178+
//! When building with `cargo hfuzz`, the argument `--cfg fuzzing` is passed to `rustc` to allow you to condition the compilation of those adaptations thanks to the `cfg` macro like so:
179179
//!
180180
//! ```rust
181181
//! # use rand::{self, Rng, SeedableRng};
@@ -247,7 +247,7 @@ pub fn fuzz<F>(closure: F) where F: FnOnce(&[u8]) {
247247

248248
// Registers a panic hook that aborts the process before unwinding.
249249
// It is useful to abort before unwinding so that the fuzzer will then be
250-
// able to analyse the process stack frames to tell different bugs appart.
250+
// able to analyse the process stack frames to tell different bugs apart.
251251
#[cfg(all(fuzzing, not(fuzzing_debug)))]
252252
lazy_static::lazy_static! {
253253
static ref PANIC_HOOK: () = {
@@ -277,7 +277,7 @@ pub fn fuzz<F>(closure: F) where F: FnOnce(&[u8]) {
277277

278278
// We still catch unwinding panics just in case the fuzzed code modifies
279279
// the panic hook.
280-
// If so, the fuzzer will be unable to tell different bugs appart and you will
280+
// If so, the fuzzer will be unable to tell different bugs apart and you will
281281
// only be able to find one bug at a time before fixing it to then find a new one.
282282
// The closure is assumed to be unwind-safe, which might be unsafe. For more info, check the
283283
// [`std::panic::UnwindSafe`] trait.

0 commit comments

Comments
 (0)