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
This commit is contained in:
Andrew Haley 1999-01-07 10:15:33 +00:00 committed by Andrew Haley
parent 8947065c44
commit 5e1db167b7
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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>
* java-tree.h: Declare read_class.

View File

@ -769,9 +769,9 @@ yyparse ()
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
fully capable. */
if (len > 5 && ! strcmp (&list[len - 5], ".java"))