|
|
@ -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); |
|
|
|