Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Violation exception #77

Open
lampersky opened this issue Oct 28, 2022 · 1 comment
Open

Access Violation exception #77

lampersky opened this issue Oct 28, 2022 · 1 comment

Comments

@lampersky
Copy link

lampersky commented Oct 28, 2022

@sebastienros is there any cycle detection mechanism in parlot?

example code which will break your app:

var loop = Deferred<string>();

loop.Parser = loop;

var test = loop.Parse("hello parlot");

or

var loop = Recursive<string>(c => c);

var test = loop.Parse("hello parlot");

I would expect this will detect infinite loop and return null instead of crashing.

image

@hishamco
Copy link
Contributor

hishamco commented Oct 6, 2023

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

No branches or pull requests

2 participants