mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
safety assertions for delayed rebuild
This commit is contained in:
parent
a4af801dd1
commit
8ee8f5f236
@ -650,6 +650,11 @@ MatcherProto makeMatcherProto(const RoseBuildImpl &build,
|
||||
size_t max_len, u32 max_offset) {
|
||||
MatcherProto mp;
|
||||
|
||||
if (delay_rebuild) {
|
||||
assert(table == ROSE_FLOATING);
|
||||
assert(build.cc.streaming);
|
||||
}
|
||||
|
||||
for (const auto &e : build.literals.right) {
|
||||
const u32 id = e.first;
|
||||
if (!build.hasFinalId(id)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user