Commit 7039a415 by Tianwei Sheng Committed by Seongbae Park

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
parent 4c44c315
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> 2008-07-08 Jakub Jelinek <jakub@redhat.com>
* tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P
......
...@@ -622,7 +622,7 @@ df_remove_problem (struct dataflow *dflow) ...@@ -622,7 +622,7 @@ df_remove_problem (struct dataflow *dflow)
int j; int j;
for (j = i + 1; j < df->num_problems_defined; 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-1] = df->problems_in_order[j];
df->problems_in_order[j] = NULL; df->problems_in_order[j-1] = NULL;
df->num_problems_defined--; df->num_problems_defined--;
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment