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

[Go] Fix null pointer dereference #3284

Merged
merged 3 commits into from
Oct 22, 2021

Conversation

SKalt
Copy link
Contributor

@SKalt SKalt commented Sep 24, 2021

Fixes #3254; this is the exact fix recommended by @kaby76.

@SKalt SKalt changed the title [Go] Fix null ptr dereference [Go] Fix null pointer dereference Sep 24, 2021
@kaby76
Copy link
Contributor

kaby76 commented Sep 24, 2021

This looks good--it does what is exactly done for superClass in the parser. Thank you for fixing this.

@SKalt
Copy link
Contributor Author

SKalt commented Sep 28, 2021

I'm getting one failing test with the message

Running org.antlr.v4.test.runtime.csharp.TestLeftRecursion

Too long with no output (exceeded 10m0s): context deadline exceeded

I don't think that test is actually running my changes (I'd expect runtime.csharp is using the c# runtime, not parsing c# using go). I'm going to rebase on the development branch and retry the tests.

@SKalt SKalt force-pushed the fix-3254-go-null-ptr-dereference branch from 4bfb194 to 34aa551 Compare September 30, 2021 00:48
@parrt parrt added this to the 4.9.3 milestone Oct 22, 2021
@parrt parrt merged commit 4340382 into antlr:master Oct 22, 2021
@SKalt SKalt deleted the fix-3254-go-null-ptr-dereference branch October 24, 2021 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go target, cannot use superClass for the lexer grammar!
3 participants