pull/160/head v1.3.5
yhirose 3 years ago
parent 495541484c
commit b85d8c89ce
  1. 6
      peglib.h

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

Loading…
Cancel
Save