test(fuzz): cargo-fuzz infrastructure#72
Conversation
a053bc7 to
cb61074
Compare
|
Some fuzz result:
But actually this result was with a change of Lines 392 to 395 in 8fdac0c |
Sorry i'm not exactly sure what you mean by this. Either way happy to get this merged in once its rebased |
Added four new fuzz targets. Each feeds arbitrary data into a parser entry point and asserts it never panics. * patch_from_bytes.rs * patch_from_str.rs * patch_set_gitdiff.rs * patch_set_gitdiff_bytes.rs * patch_set_unidiff.rs * patch_set_unidiff_bytes.rs See README.md for more.
- PR: 30s smoke test per target - Daily schedule: 10min per target See <https://rust-fuzz.github.io/book/cargo-fuzz/ci.html>
I have two separate fixes for the potential overflow in
|
|
Would be interesting to see the input that led to finding this issue. Seems unlikely that a patch would have usize::MAX lines without some other part of the system giving up first. |
Two things:
Add four new fuzz targets
Each feeds arbitrary data into a parser entry point
and asserts it never panics.
See fuzz/README.md for more.
Add fuzz CI workflow
See https://rust-fuzz.github.io/book/cargo-fuzz/ci.html