ScriptEngine.Execute sometimes kills the running process by throwing StackOverflowException (without any recursion involved). Here is the full program to reproduce this:
namespace Jurassic.Run
{
public class Program
{
public static void Main(string[] args)
{
var engine = new ScriptEngine();
engine.Execute("Symbol()==0");
}
}
}
Here are two additional inputs that cause the same behavior:
new ScriptEngine().Execute("+eval==Symbol()");
new ScriptEngine().Execute("0instanceof Symbol==Symbol()");
Found via SharpFuzz.
ScriptEngine.Execute sometimes kills the running process by throwing StackOverflowException (without any recursion involved). Here is the full program to reproduce this:
Here are two additional inputs that cause the same behavior:
Found via SharpFuzz.