#[test]
fn test_from_fuzz() {
assert_lex(
r#""\uffbr\uffb3"#,
&[], // actually this isn't what we expect, but they panic before it comes to assert_eq so it's fine
);
}
It appeared that \\uffbr part causes an InvalidToken, and then when it comes to \\uffb3, lexer.match_() actually has the invalid part left \\uffbr\\uffb3 which causes
This can further be minimized to
It appeared that
\\uffbr
part causes anInvalidToken
, and then when it comes to\\uffb3
,lexer.match_()
actually has the invalid part left\\uffbr\\uffb3
which causesto panic. Filed https://github.com/osa1/lexgen/issues/48