Add fuzzing tests

This commit is contained in:
link2xt
2022-12-27 09:17:19 +00:00
parent 1e351bd05f
commit 4a982fe632
11 changed files with 3573 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
use bolero::check;
use deltachat::fuzzing::simplify;
fn main() {
check!().for_each(|data: &[u8]| match String::from_utf8(data.to_vec()) {
Ok(input) => {
simplify(input.clone(), true);
simplify(input, false);
}
Err(_err) => {}
});
}