diff options
author | Jan Hubicka <jh@suse.cz> | 2012-11-15 02:07:01 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2012-11-15 01:07:01 +0000 |
commit | 6c2b4cacb93fbc4962d1f82d377af6e68def21a9 (patch) | |
tree | c86f4365c3c940f3a75278dd0515e7d82536ec4a /gcc/gcov-io.c | |
parent | ff4b7a7e9100b2b5b05c34f0851011b9c5169df7 (diff) | |
download | gcc-6c2b4cacb93fbc4962d1f82d377af6e68def21a9.zip gcc-6c2b4cacb93fbc4962d1f82d377af6e68def21a9.tar.gz gcc-6c2b4cacb93fbc4962d1f82d377af6e68def21a9.tar.bz2 |
re PR bootstrap/55051 (profiledbootstrap failed)
PR bootstrap/55051
* gcov-io.c (gcov_read_summary): Fix array bound check.
From-SVN: r193522
Diffstat (limited to 'gcc/gcov-io.c')
-rw-r--r-- | gcc/gcov-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |