Skip to content

Engine.Execute can throw many unexpected exceptions #571

@Metalnem

Description

@Metalnem

Engine.Execute can throw many unexpected exceptions (JavaScriptException and ParserException are expected for malformed inputs) when executing scripts from the attached archive. These are:

  • ArgumentOutOfRangeException
  • IndexOutOfRangeException
  • InvalidCastException
  • InvalidOperationException
  • NullReferenceException
  • OverflowException

You can run the following code to reproduce it (the path variable should contain the path to one of the extracted files):

var text = File.ReadAllText(path);
new Engine().Execute(text);

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