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
This commit is contained in:
Ian Lance Taylor 2011-05-24 21:07:15 +00:00 committed by Ian Lance Taylor
parent f17333e303
commit 936fd13c5b
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-05-24 Ian Lance Taylor <iant@google.com>
* godump.c (go_define): Don't accept a string immediately after
another operand.
2011-05-24 Ian Lance Taylor <iant@google.com>
* godump.c (struct godump_container): Add invalid_hash field.

View file

@ -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)
{