This commit is contained in:
yhirose 2021-03-17 09:48:43 -04:00
parent 495541484c
commit b85d8c89ce

View File

@ -3732,9 +3732,9 @@ private:
if (!ret) { return nullptr; } if (!ret) { return nullptr; }
// Check infinite loop // Check infinite loop
for (auto &[name, rule] : grammar) { {
DetectInfiniteLoop vis(rule.s_, name); DetectInfiniteLoop vis(data.start_pos, data.start);
rule.accept(vis); start_rule.accept(vis);
if (vis.has_error) { if (vis.has_error) {
if (log) { if (log) {
auto line = line_info(s, vis.error_s); auto line = line_info(s, vis.error_s);