Commit 6c2b4cac by Jan Hubicka Committed by Jan Hubicka

re PR bootstrap/55051 (profiledbootstrap failed)

	PR bootstrap/55051
	* gcov-io.c (gcov_read_summary): Fix array bound check.

From-SVN: r193522
parent ff4b7a7e
2012-11-14 Jan Hubicka <jh@suse.cz>
PR bootstrap/55051
* gcov-io.c (gcov_read_summary): Fix array bound check.
2012-11-14 Sterling Augustine <saugustine@google.com>
PR debug/55328
......@@ -552,8 +552,8 @@ gcov_read_summary (struct gcov_summary *summary)
while (!cur_bitvector)
{
h_ix = bv_ix * 32;
gcc_assert(bv_ix < GCOV_HISTOGRAM_BITVECTOR_SIZE);
cur_bitvector = histo_bitvector[bv_ix++];
gcc_assert(bv_ix <= GCOV_HISTOGRAM_BITVECTOR_SIZE);
}
while (!(cur_bitvector & 0x1))
{
......
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