Commit 5e1db167 by Andrew Haley Committed by Andrew Haley

jcf-parse.c (yyparse): variable len changed from a char to an int to prevent overflow.

1999-01-07  Andrew Haley  <aph@viagra.cygnus.co.uk>
	* jcf-parse.c (yyparse): variable len changed from a char to an
	int to prevent overflow.

From-SVN: r24560
parent 8947065c
1999-01-07 Andrew Haley <aph@viagra.cygnus.co.uk>
* jcf-parse.c (yyparse): variable len changed from a char to an
int to prevent overflow.
Wed Jan 6 17:19:46 1999 Per Bothner <bothner@cygnus.com> Wed Jan 6 17:19:46 1999 Per Bothner <bothner@cygnus.com>
* java-tree.h: Declare read_class. * java-tree.h: Declare read_class.
......
...@@ -769,9 +769,9 @@ yyparse () ...@@ -769,9 +769,9 @@ yyparse ()
if (list[0]) if (list[0])
{ {
char *value, len; char *value;
len = strlen (list); int len = strlen (list);
/* FIXME: this test is only needed until our .java parser is /* FIXME: this test is only needed until our .java parser is
fully capable. */ fully capable. */
if (len > 5 && ! strcmp (&list[len - 5], ".java")) if (len > 5 && ! strcmp (&list[len - 5], ".java"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment