diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/atom/parsers.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/atom/parsers.rs b/src/atom/parsers.rs index c609a1c..be59e1f 100644 --- a/src/atom/parsers.rs +++ b/src/atom/parsers.rs @@ -507,4 +507,16 @@ mod test { Atom::parser().check_finished(it).unwrap(); } + + #[test] + fn test_against_fuzzer_false_positives() { + let atoms = ["media-libs/libsdl2[haptitick(+),sound(+)vd,eio(+)]"]; + + for atom in atoms { + assert!( + Atom::parser().check_finished(InputIter::new(atom)).is_err(), + "{atom}" + ); + } + } } |
