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

ScriptEngine.Execute terminates the process with StackOverflowException (without using recursion) #141

Open
Metalnem opened this issue Jan 21, 2019 · 0 comments

Comments

@Metalnem
Copy link

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.

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

1 participant