fix: ASAN heap-buffer-overflow issue in DBHelpers (#2310)

This commit is contained in:
Alex Kremer
2025-07-09 21:17:25 +01:00
committed by GitHub
parent bfe5b52a64
commit 44d39f335e
4 changed files with 7 additions and 53 deletions

View File

@@ -222,7 +222,7 @@ TEST_F(BlockingCacheTest, InvalidateWhenStateIsHasValue)
EXPECT_EQ(cache->state(), Cache::State::NoValue);
}
TEST_F(BlockingCacheTest, UpdateFromTwoCoroutinesHappensOnlyOnes)
TEST_F(BlockingCacheTest, UpdateFromTwoCoroutinesHappensOnlyOnce)
{
auto waitingCoroutine = [&](boost::asio::yield_context yield) {
auto result = cache->update(yield, mockUpdater.AsStdFunction(), mockVerifier.AsStdFunction());