summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-17 09:01:22 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-17 09:01:22 +0000
commit645f35632996a7450db9a7db52ae7b30defd7138 (patch)
tree65738ba6efd7199cd1acadc0e7666e9611a1aa0c /gcc/gcc.c
parentf540a052e5975baa8244237055382de88ba3fadb (diff)
downloadgcc-645f35632996a7450db9a7db52ae7b30defd7138.tar.gz
* gcc.c (used_arg): Prevent out of bound access for multilib_options.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209470 138bc75d-0d04-0410-961f-82ee72b054a4
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 5cb485acbd3..c8ab7d67484 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++;