mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-02 00:46:20 +08:00
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:
parent
8947065c44
commit
5e1db167b7
@ -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.
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user