[antlr-interest] A Memory bug in C Grammar
Gokulakannan Somasundaram
gokul007 at gmail.com
Fri Jan 20 22:06:15 PST 2012
Hi,
I was looking at the source code. In the file antlr3collections.c, on
line no. 1783
there is a statement like this
trie->root = (pANTLR3_INT_TRIE_NODE) ANTLR3_CALLOC(1,
sizeof(ANTLR3_INT_TRIE));
I think, it should be like this.
trie->root = (pANTLR3_INT_TRIE_NODE) ANTLR3_CALLOC(1, sizeof(
ANTLR3_INT_TRIE_NODE ));
I think, this would have very less savings.
Thanks,
Gokul.
More information about the antlr-interest
mailing list