c-lex.c (c_lex_with_flags): Increase size of local variable to avoid memory clobber.
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 14 Aug 2009 14:38:24 +0000 (14:38 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Fri, 14 Aug 2009 14:38:24 +0000 (14:38 +0000)
* c-lex.c (c_lex_with_flags): Increase size of local variable
to avoid memory clobber.

From-SVN: r150756

gcc/ChangeLog
gcc/c-lex.c

index 5e51aea56f20a349549f54ac2413d653c775007b..125b127d39bbf2276cdae5b9c8b408da7b99c4df 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
+
+       * c-lex.c (c_lex_with_flags): Increase size of local variable
+       to avoid memory clobber.
+
 2009-08-14  Paolo Bonzini  <bonzini@gnu.org>
 
        PR target/40934
index 0b6fcc00b3184f85ee7a1eba729545ac54f90c2c..0c6cdab9dff8b59bef1b01cb877689ee778f8158 100644 (file)
@@ -390,7 +390,7 @@ c_lex_with_flags (tree *value, location_t *loc, unsigned char *cpp_flags,
     case CPP_HASH:
     case CPP_PASTE:
       {
-       unsigned char name[4];
+       unsigned char name[8];
 
        *cpp_spell_token (parse_in, tok, name, true) = 0;