Skip to content

ScriptEngine.Execute throws some unexpected exceptions #142

@Metalnem

Description

@Metalnem

ScriptEngine.Execute can throw many unexpected exceptions. Here are the types of exceptions it can throw and the code snippets used to trigger them:

ArgumentException

new ScriptEngine().Execute("if(5 .toString(3)==0)(0)");

ArgumentOutOfRangeException

new ScriptEngine().Execute("new Date(0,0)");

IndexOutOfRangeException

new ScriptEngine().Execute("delete[].(0)");

InvalidCastException

new ScriptEngine().Execute("({[0](");

NullReferenceException

new ScriptEngine().Execute("function a(){for(a=0;a<0;0++)0}");

Found via SharpFuzz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy