From 0527c3bc8ab9f7299c1ef883e8daacb153a6af49 Mon Sep 17 00:00:00 2001 From: hubicka Date: Thu, 15 Nov 2012 01:07:01 +0000 Subject: [PATCH] PR bootstrap/55051 * gcov-io.c (gcov_read_summary): Fix array bound check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193522 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/gcov-io.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee4d129..c27ce16 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-11-14 Jan Hubicka + + PR bootstrap/55051 + * gcov-io.c (gcov_read_summary): Fix array bound check. + 2012-11-14 Sterling Augustine PR debug/55328 diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c index f562654..109401c 100644 --- a/gcc/gcov-io.c +++ b/gcc/gcov-io.c @@ -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)) { -- 2.7.4