Skip to content

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

@Metalnem

Description

@Metalnem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions