summaryrefslogtreecommitdiff
path: root/gcc/gcov-io.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-15 01:07:01 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2012-11-15 01:07:01 +0000
commit0527c3bc8ab9f7299c1ef883e8daacb153a6af49 (patch)
treec86f4365c3c940f3a75278dd0515e7d82536ec4a /gcc/gcov-io.c
parent9d36d513ae1d979d5b4973e5d72e49588d5d42a2 (diff)
downloadgcc-0527c3bc8ab9f7299c1ef883e8daacb153a6af49.tar.gz
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
Diffstat (limited to 'gcc/gcov-io.c')
-rw-r--r--gcc/gcov-io.c2
1 files changed, 1 insertions, 1 deletions
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))
{