[antlr-interest] Bug in ANTLReaderStream.load()?
Terence Parr
parrt at cs.usfca.edu
Sun Jul 29 13:59:16 PDT 2007
Good catch! Fixed in my dev branch.
Ter
On Jul 29, 2007, at 10:59 AM, Sam Ellis wrote:
> Using: ANTLR Parser Generator Version 3.0 (May 17, 2007) 1989-2007
>
> The Java method org.antlr.runtime.ANTLRReaderStream.load() contains:
>
> if ( readChunkSize<=0 ) {
> size = READ_BUFFER_SIZE;
> }
>
>
> Shouldn't this be assigning to readChunkSize instead of size? Because
> otherwise you're later going to call Java.io.reader.read() with a
> negative
> number of bytes to read.
More information about the antlr-interest
mailing list