We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76e0a0 commit eab5b61Copy full SHA for eab5b61
regex-automata/src/dfa/dense.rs
@@ -5230,4 +5230,17 @@ mod tests {
5230
let got = dfa.try_search_rev(&input);
5231
assert_eq!(Err(expected), got);
5232
}
5233
+
5234
+ // This panics in TransitionTable::validate if the match states are not validated first.
5235
+ #[test]
5236
+ fn regression_validation_order() {
5237
+ let mut dfa = DFA::new("abc").unwrap();
5238
+ dfa.ms = MatchStates {
5239
+ slices: vec![],
5240
+ pattern_ids: vec![],
5241
+ pattern_len: 1,
5242
+ };
5243
+ let (buf, _) = dfa.to_bytes_native_endian();
5244
+ DFA::from_bytes(&buf).unwrap_err();
5245
+ }
5246
0 commit comments