Skip to content

[Go] Fix null pointer dereference - #3284

Merged
parrt merged 3 commits into
antlr:masterfrom
SKalt:fix-3254-go-null-ptr-dereference
Oct 22, 2021
Merged

parrt merged 3 commits into
antlr:masterfrom
SKalt:fix-3254-go-null-ptr-dereference

Conversation

@SKalt

@SKalt SKalt commented Sep 24, 2021

Copy link
Copy Markdown
Contributor

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

kaby76 commented Sep 24, 2021

Copy link
Copy Markdown
Contributor

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

@SKalt

SKalt commented Sep 28, 2021

Copy link
Copy Markdown
Contributor Author

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