Commit 59b266b1 by Kito Cheng Committed by Jakub Jelinek

* gcc.c (used_arg): Prevent out of bound access for multilib_options.

From-SVN: r209470
parent 83ad208e
2014-04-17 Kito Cheng <kito@0xlab.org>
* gcc.c (used_arg): Prevent out of bound access for multilib_options.
2014-04-17 Richard Biener <rguenther@suse.de>
PR middle-end/60849
......
......@@ -7490,7 +7490,7 @@ used_arg (const char *p, int len)
{
const char *r;
for (q = multilib_options; *q != '\0'; q++)
for (q = multilib_options; *q != '\0'; *q && q++)
{
while (*q == ' ')
q++;
......
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