--- gcc.c.orig Sun Sep 2 00:28:30 2007 +++ gcc.c Sun Jan 11 18:25:10 2015 @@ -7093,7 +7093,9 @@ used_arg (const char *p, int len) { const char *r; - for (q = multilib_options; *q != '\0'; q++) + // [PATCH] Prevent out of bound access for multilib_options + // https://gcc.gnu.org/ml/gcc-patches/2014-04/msg00752.html + for (q = multilib_options; *q != '\0'; *q && q++) { while (*q == ' ') q++;