re PR libfortran/52758 (libgfortran/intrinsics/chmod.c: Array index out of bounds)

PR libgfortran/52758
	* intrinsics/chmod.c: Remove out-of-bound initialization of rwxXstugo.

From-SVN: r186008
This commit is contained in:
Uros Bizjak 2012-03-30 13:07:46 +02:00 committed by Uros Bizjak
parent 4b985e2054
commit 0b20f4a6ca
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-03-30 Uros Bizjak <ubizjak@gmail.com>
PR libgfortran/52758
* intrinsics/chmod.c: Remove out-of-bound initialization of rwxXstugo.
2012-03-27 Tristan Gingold <gingold@adacore.com>
* configure.ac: Add description to AC_DEFINE in

View File

@ -141,7 +141,6 @@ chmod_func (char *name, char *mode, gfc_charlen_type name_len,
rwxXstugo[6] = false;
rwxXstugo[7] = false;
rwxXstugo[8] = false;
rwxXstugo[9] = false;
part = 0;
set_mode = -1;
for (; i < mode_len; i++)