From: Kito Cheng Date: Thu, 17 Apr 2014 09:01:22 +0000 (+0000) Subject: * gcc.c (used_arg): Prevent out of bound access for multilib_options. X-Git-Tag: releases/gcc-5.1.0~8066 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59b266b1d74849a61578fd8c94d3012da4c21039;p=thirdparty%2Fgcc.git * gcc.c (used_arg): Prevent out of bound access for multilib_options. From-SVN: r209470 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99ef2dc2ab86..68fc4a7bd156 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2014-04-17 Kito Cheng + + * gcc.c (used_arg): Prevent out of bound access for multilib_options. + 2014-04-17 Richard Biener PR middle-end/60849 diff --git a/gcc/gcc.c b/gcc/gcc.c index 5cb485acbd34..c8ab7d674845 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -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++;