aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorKito Cheng <kito@0xlab.org>2014-04-17 09:01:22 +0000
committerJakub Jelinek <jakub@gcc.gnu.org>2014-04-17 11:01:22 +0200
commit59b266b1d74849a61578fd8c94d3012da4c21039 (patch)
tree65738ba6efd7199cd1acadc0e7666e9611a1aa0c /gcc/gcc.c
parent83ad208e2cd0f0d14e1f138598556a0a5a34764d (diff)
downloadgcc-59b266b1d74849a61578fd8c94d3012da4c21039.zip
gcc-59b266b1d74849a61578fd8c94d3012da4c21039.tar.gz
gcc-59b266b1d74849a61578fd8c94d3012da4c21039.tar.bz2
* gcc.c (used_arg): Prevent out of bound access for multilib_options.
From-SVN: r209470
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 5cb485a..c8ab7d6 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++;