mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-09 15:52:27 +03:00
dfa: don't clear states, just mark dfa dead
The previous change caused some assertion issues.
This commit is contained in:
committed by
Matthew Barr
parent
3d4d39b8a9
commit
75e4aefabe
@@ -59,6 +59,13 @@ size_t hash_dfa(const raw_dfa &rdfa);
|
||||
|
||||
bool can_die_early(const raw_dfa &raw, u32 age_limit);
|
||||
|
||||
/**
|
||||
* \brief Returns true if this DFA cannot match, i.e. its start state is
|
||||
* DEAD_STATE.
|
||||
*/
|
||||
bool is_dead(const raw_dfa &rdfa);
|
||||
|
||||
|
||||
} // namespace ue2
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user