From 065312cfdd633dae0cf725104e07a2c05e2747e7 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Fri, 14 Aug 2009 14:38:24 +0000 Subject: [PATCH] c-lex.c (c_lex_with_flags): Increase size of local variable to avoid memory clobber. * c-lex.c (c_lex_with_flags): Increase size of local variable to avoid memory clobber. From-SVN: r150756 --- gcc/ChangeLog | 5 +++++ gcc/c-lex.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5e51aea56f2..125b127d39b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-08-14 Ulrich Weigand + + * c-lex.c (c_lex_with_flags): Increase size of local variable + to avoid memory clobber. + 2009-08-14 Paolo Bonzini PR target/40934 diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 0b6fcc00b31..0c6cdab9dff 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -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; -- 2.30.2