Skip to content

Parser.Parse throws ArgumentOutOfRangeException #21

Description

@Metalnem

Parser.Parse throws an ArgumentOutOfRangeException when parsing the file from the attached archive. You can run the following code to reproduce it (the path variable should contain the path to the extracted file):

var text = File.ReadAllText(path);
var parser = new Parser(new Lexer());
parser.Parse(new Source(text));

Found via SharpFuzz.

Activity

  1. sungam3r commented on Mar 7, 2019

    @sungam3r
    Member

    I can not read the file from the archive. It looks like it has binary data.

  2. added a commit that references this issue on Mar 8, 2019
    efe90c7
  3. sungam3r commented on Mar 8, 2019

    @sungam3r
    Member

    I apologize, confused the file with a similar one from another issue. The error was that it was not possible to read the unicode character at the end of the file.

  4. added a commit that references this issue on Mar 20, 2019
    aa3d963
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions