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

Parser.Parse throws ArgumentOutOfRangeException #21

Closed
Metalnem opened this issue Dec 24, 2018 · 2 comments · Fixed by #24
Closed

Parser.Parse throws ArgumentOutOfRangeException #21

Metalnem opened this issue Dec 24, 2018 · 2 comments · Fixed by #24

Comments

@Metalnem
Copy link

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.

@sungam3r
Copy link
Member

sungam3r commented Mar 7, 2019

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

@sungam3r
Copy link
Member

sungam3r commented Mar 8, 2019

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.

joemcbride pushed a commit that referenced this issue Mar 20, 2019
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

Successfully merging a pull request may close this issue.

2 participants