parlot icon indicating copy to clipboard operation
parlot copied to clipboard

Access Violation exception

Open lampersky opened this issue 1 year ago • 1 comments

@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

lampersky avatar Oct 28 '22 08:10 lampersky