summaryrefslogtreecommitdiff
path: root/gcc/java/jcf-parse.c
diff options
context:
space:
mode:
authorAndrew Haley <aph@viagra.cygnus.co.uk>1999-01-07 10:15:33 +0000
committerAndrew Haley <aph@gcc.gnu.org>1999-01-07 10:15:33 +0000
commit5e1db167b77b3f96157c18fc3c879c28b329f911 (patch)
tree7684cd73a65eabb9d9ba570592c4a82166765cf3 /gcc/java/jcf-parse.c
parent8947065c4433a12febf38644b041e32081825000 (diff)
downloadgcc-5e1db167b77b3f96157c18fc3c879c28b329f911.tar.gz
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
Diffstat (limited to 'gcc/java/jcf-parse.c')
-rw-r--r--gcc/java/jcf-parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 27ac86c5e77..b3144d3e792 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -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"))