diff options
author | Tianwei Sheng <tianweis@google.com> | 2008-07-08 17:08:40 +0000 |
---|---|---|
committer | Seongbae Park <spark@gcc.gnu.org> | 2008-07-08 17:08:40 +0000 |
commit | 7039a4155170e5aeeefe23555cb4ed2b5ea77a2b (patch) | |
tree | f320b8bf4dc985ad170d57a6dc395b3feff16834 | |
parent | 4c44c315d4f300b0effee18306c026f05a29bcb8 (diff) | |
download | gcc-7039a4155170e5aeeefe23555cb4ed2b5ea77a2b.zip gcc-7039a4155170e5aeeefe23555cb4ed2b5ea77a2b.tar.gz gcc-7039a4155170e5aeeefe23555cb4ed2b5ea77a2b.tar.bz2 |
On behalf of Tianwei, for the following change:
2008-07-07 Tianwei Sheng <tianweis@google.com>
* df-core.c (df_remove_problem): Adjust the access to avoid out of
bounds array access.
From-SVN: r137634
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/df-core.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b93a55d..64888e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-07-07 Tianwei Sheng <tianweis@google.com> + + * df-core.c (df_remove_problem): Adjust the access to avoid out of + bounds array access. + 2008-07-08 Jakub Jelinek <jakub@redhat.com> * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P diff --git a/gcc/df-core.c b/gcc/df-core.c index 8e6a4e1..1ea3012 100644 --- a/gcc/df-core.c +++ b/gcc/df-core.c @@ -622,7 +622,7 @@ df_remove_problem (struct dataflow *dflow) int j; for (j = i + 1; j < df->num_problems_defined; j++) df->problems_in_order[j-1] = df->problems_in_order[j]; - df->problems_in_order[j] = NULL; + df->problems_in_order[j-1] = NULL; df->num_problems_defined--; break; } |