From patchwork Fri Mar 30 11:10:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [libgfortran] : Fix PR52758, out of bounds access Date: Fri, 30 Mar 2012 01:10:32 -0000 From: Uros Bizjak X-Patchwork-Id: 149621 Message-Id: To: gcc-patches@gcc.gnu.org Cc: Fortran List Hello! 2012-03-30 Uros Bizjak PR libgfortran/52758 * intrinsics/chmod.c: Remove out-of-bounds initialization of rwxXstugo. Bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32}, committed to mainline SVN as obvious. Uros. Index: intrinsics/chmod.c =================================================================== --- intrinsics/chmod.c (revision 185992) +++ intrinsics/chmod.c (working copy) @@ -141,7 +141,6 @@ chmod_func (char *name, char *mode, gfc_charlen_ty rwxXstugo[6] = false; rwxXstugo[7] = false; rwxXstugo[8] = false; - rwxXstugo[9] = false; part = 0; set_mode = -1; for (; i < mode_len; i++)