[BP] MB-20598: AddressSanitizer problems 06/68106/3
authorJim Walker <jim@couchbase.com>
Fri, 19 Aug 2016 15:19:51 +0000 (15:19 +0000)
committerDave Rigby <daver@couchbase.com>
Thu, 29 Sep 2016 11:38:21 +0000 (11:38 +0000)
commit464bf6f42456638c8c85c2f57f2a7984d7e3e80f
tree1ba199c3f0a8e0d5841696d35b0b13be42f88815
parentaec0a8efc30a3f6ee01675c58eb511d3198eddc6
[BP] MB-20598: AddressSanitizer problems

Two leaks and one stack overflow.

The forest-kvstore code should use dynamic_cast (like couch-kvstore)
else when the incoming callback is not a RememberingCallback, we will
access outside of the incoming object.

ep_testsuite has a leak in tap code where we must release items
during iteration.

Change-Id: If0db9e936ee141299c5a579235e828c7309b8118
Reviewed-on: http://review.couchbase.org/68106
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: buildbot <build@couchbase.com>
src/forest-kvstore/forest-kvstore.cc
tests/ep_testsuite.cc