mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
rose: guard writeNfaInfo from zero NFAs
This commit is contained in:
parent
5edecbf539
commit
96fdca6f54
@ -2695,9 +2695,13 @@ void writeLeftInfo(build_context &bc, RoseEngine &proto,
|
||||
static
|
||||
void writeNfaInfo(const RoseBuildImpl &build, build_context &bc,
|
||||
RoseEngine &proto, const set<u32> &no_retrigger_queues) {
|
||||
const u32 queue_count = build.qif.allocated_count();
|
||||
if (!queue_count) {
|
||||
return;
|
||||
}
|
||||
|
||||
auto ekey_lists = buildSuffixEkeyLists(build, bc, build.qif);
|
||||
|
||||
const u32 queue_count = build.qif.allocated_count();
|
||||
vector<NfaInfo> infos(queue_count);
|
||||
memset(infos.data(), 0, sizeof(NfaInfo) * queue_count);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user