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

From-SVN: r209470
This commit is contained in:
Kito Cheng 2014-04-17 09:01:22 +00:00 committed by Jakub Jelinek
parent 83ad208e2c
commit 59b266b1d7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View File

@ -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++;