Skip to content

Conversation

@msftrncs
Copy link
Contributor

Presenting a solution for endless loop detection that catches endless loops that occur over multiple Begin/End or Begin/While rules, while preventing falsely flagging rules that appear to be endless loops due to the same rule as last stacked matching with a zero length capture condition.

Included are tests for the possible endless loop patterns and for the false pattern described above.

Fixes #145

For BeginEnd and BeginWhile rules, improves the endless loop detection,
detecting multiple rule deep loops and not falsing detecting successively
repeating rules that did not occur at the same place.

Fixes microsoft#145.
Copy link
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to think more about this test case and if it is possible to avoid the while loop through the stack elements.

@alexdima alexdima added this to the February 2021 milestone Jan 29, 2021
@alexdima
Copy link
Member

Thank you! ❤️

@alexdima alexdima merged commit 036dcad into microsoft:master Jan 29, 2021
@msftrncs msftrncs deleted the ImproveEndlessLoopDet branch January 30, 2021 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Grammer Endless Loop detector triggers inappropriately

2 participants