From: hubicka Date: Thu, 15 Nov 2012 01:07:01 +0000 (+0000) Subject: PR bootstrap/55051 X-Git-Tag: upstream/4.9.2~9181 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0527c3bc8ab9f7299c1ef883e8daacb153a6af49;p=platform%2Fupstream%2Flinaro-gcc.git 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 --- 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)) {