From: Ian Lance Taylor Date: Tue, 24 May 2011 21:07:15 +0000 (+0000) Subject: godump.c (go_define): Don't accept a string immediately after another operand. X-Git-Tag: releases/gcc-4.7.0~6545 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=936fd13c5b33cd6748788802ec3bb3445a396228;p=thirdparty%2Fgcc.git godump.c (go_define): Don't accept a string immediately after another operand. * godump.c (go_define): Don't accept a string immediately after another operand. From-SVN: r174141 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7264b1515af8..9a5a49635943 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-24 Ian Lance Taylor + + * godump.c (go_define): Don't accept a string immediately after + another operand. + 2011-05-24 Ian Lance Taylor * godump.c (struct godump_container): Add invalid_hash field. diff --git a/gcc/godump.c b/gcc/godump.c index 4009899eceae..35db1d6a8c43 100644 --- a/gcc/godump.c +++ b/gcc/godump.c @@ -300,7 +300,11 @@ go_define (unsigned int lineno, const char *buffer) case '"': case '\'': { - char quote = *p; + char quote; + + if (saw_operand) + goto unknown; + quote = *p; *q++ = *p++; while (*p != quote) {