Commit 936fd13c by Ian Lance Taylor Committed by Ian Lance Taylor

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
parent f17333e3
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.
(go_format_type): Return false if type is found in invalid_hash.
(go_output_typedef): Add invalid type to invalid_hash.
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment