1
Vote

Crash in Antlr.Runtime.Lexer.Text

description

When using $text in an action, an ArgumentOutOfRangeException is generated.
 
Unhandled Exception: System.ArgumentOutOfRangeException: Cannot be negative.
Parameter name: length
at System.String.CreateString (System.Char[] val, Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0
at (wrapper managed-to-managed) string:.ctor (char[],int,int)
at Antlr.Runtime.ANTLRStringStream.Substring (Int32 start, Int32 stop) [0x00000] in <filename unknown>:0
at Antlr.Runtime.Lexer.get_Text () [0x00000] in <filename unknown>:0
 
Patch attached.

file attachments

comments