Skip to content

Commit

Permalink
Merge pull request paupino#418 from c410-f3r/fuzzzzzzz
Browse files Browse the repository at this point in the history
Add more fuzz tests
  • Loading branch information
paupino authored Aug 27, 2021
2 parents 1e35a73 + d50a0b2 commit 193ca72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fuzz/fuzz_targets/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ struct Data {

libfuzzer_sys::fuzz_target!(|data: Data| {
let _ = data.a.checked_add(data.b);
let _ = data.a.checked_cos();
let _ = data.a.checked_div(data.b);
let _ = data.a.checked_exp_with_tolerance(data.b);
let _ = data.a.checked_exp();
Expand All @@ -22,5 +23,7 @@ libfuzzer_sys::fuzz_target!(|data: Data| {
let _ = data.a.checked_powf(data.exp_f64);
let _ = data.a.checked_powi(data.exp_i64);
let _ = data.a.checked_powu(data.exp_u64);
let _ = data.a.checked_sin();
let _ = data.a.checked_sub(data.b);
let _ = data.a.checked_tan();
});

0 comments on commit 193ca72

Please sign in to comment.