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:
parent
f17333e303
commit
936fd13c5b
2 changed files with 10 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue