diff options
author | spark <spark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-08 17:08:40 +0000 |
---|---|---|
committer | spark <spark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-08 17:08:40 +0000 |
commit | 149d23ac42a70faf72e819bfb7228425885baa2d (patch) | |
tree | f320b8bf4dc985ad170d57a6dc395b3feff16834 /gcc/df-core.c | |
parent | dd384a24339b3c05d5851f55bc3f9fb18fb01b80 (diff) | |
download | gcc-149d23ac42a70faf72e819bfb7228425885baa2d.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137634 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-core.c')
-rw-r--r-- | gcc/df-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/df-core.c b/gcc/df-core.c index 8e6a4e14825..1ea30122254 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; } |