Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix(asan): heap-buffer-overflow in meta_test_base.h (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
foreverneverer authored Jan 10, 2020
1 parent 7b37038 commit d9c2859
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ class meta_test_base : public testing::Test
_ms = make_unique<fake_receiver_meta_service>();
_ms->_failure_detector.reset(new meta_server_failure_detector(_ms.get()));
_ms->_balancer.reset(utils::factory_store<server_load_balancer>::create(
_ms->_meta_opts._lb_opts.server_load_balancer_type.c_str(), PROVIDER_TYPE_MAIN, this));
_ms->_meta_opts._lb_opts.server_load_balancer_type.c_str(),
PROVIDER_TYPE_MAIN,
_ms.get()));
ASSERT_EQ(_ms->remote_storage_initialize(), ERR_OK);
_ms->initialize_duplication_service();
ASSERT_TRUE(_ms->_dup_svc);
Expand Down

0 comments on commit d9c2859

Please sign in to comment.