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

PR libgfortran/52758
	* intrinsics/chmod.c (chmod_func): Remove out-of-bounds
	initialization of rwxXstugo.

From-SVN: r186014
This commit is contained in:
Uros Bizjak 2012-03-30 17:37:51 +02:00 committed by Uros Bizjak
parent 64bf41072e
commit 440cbda9e6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-03-30 Uros Bizjak <ubizjak@gmail.com>
PR libgfortran/52758
* intrinsics/chmod.c (chmod_func): Remove out-of-bounds
initialization of rwxXstugo.
2012-03-22 Release Manager
* GCC 4.7.0 released.

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++)