Access Violation exception
lampersky opened this issue · comments
lampersky commented
@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.
Hisham Bin Ateya commented
We could do something similar to what we did in Fluid