MB-21300: [Address Sanitizer] Prevent underflow during hash table resize() 87/68887/2
authorManu Dhundi <manu@couchbase.com>
Tue, 18 Oct 2016 20:51:10 +0000 (13:51 -0700)
committerManu Dhundi <manu@couchbase.com>
Tue, 18 Oct 2016 21:22:11 +0000 (21:22 +0000)
commit08386b63b941effcf4a30f5db1fc57f92d934cf8
tree1cc4a30414aaea32895106c776014785fa4e385c
parentfa1c2c97acb07f35282e39ed9a6246eb22466c3c
MB-21300: [Address Sanitizer] Prevent underflow during hash table resize()

http://cv.jenkins.couchbase.com/job/ep-engine-addresssanitizer-master/385

If i == 0 in line 144 of HashTable::resize(), reading prime_size_table[i - 1]
is spurious.

Change-Id: I7f3135efff7a0993fb939707b912d064514e9a45
Reviewed-on: http://review.couchbase.org/68887
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/stored-value.cc