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 1df9a33 commit aaf211bCopy full SHA for aaf211b
regex-automata/src/dfa/dense.rs
@@ -5234,4 +5234,17 @@ mod tests {
5234
let got = dfa.try_search_rev(&input);
5235
assert_eq!(Err(expected), got);
5236
}
5237
+
5238
+ // This panics in TransitionTable::validate if the match states are not validated first.
5239
+ #[test]
5240
+ fn regression_validation_order() {
5241
+ let mut dfa = DFA::new("abc").unwrap();
5242
+ dfa.ms = MatchStates {
5243
+ slices: vec![],
5244
+ pattern_ids: vec![],
5245
+ pattern_len: 1,
5246
+ };
5247
+ let (buf, _) = dfa.to_bytes_native_endian();
5248
+ DFA::from_bytes(&buf).unwrap_err();
5249
+ }
5250
0 commit comments