From 0527c3bc8ab9f7299c1ef883e8daacb153a6af49 Mon Sep 17 00:00:00 2001 From: hubicka Date: Thu, 15 Nov 2012 01:07:01 +0000 Subject: 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/gcov-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gcov-io.c') diff --git a/gcc/gcov-io.c b/gcc/gcov-io.c index f5626542521..109401c62b5 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)) { -- cgit v1.2.1