From 9d062088260a9a50dd91d22869089c625c8628d6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 14 Nov 2024 10:39:19 -0800 Subject: [PATCH] Fix failure in CowTest#InvalidMergeOrderTest. This is failing on hwasan builds due to a typo in the test method. The actual writer logic is unaffected. Bug: 377298650 Test: valgrind cow_api_test Change-Id: I5c3f32ae57bf90b9fd29c7446bf34bdcb004328c --- fs_mgr/libsnapshot/libsnapshot_cow/test_v2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/test_v2.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/test_v2.cpp index ce80cd705..b7bc2c8b7 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/test_v2.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/test_v2.cpp @@ -1487,7 +1487,7 @@ TEST_F(CowTest, InvalidMergeOrderTest) { writer = std::make_unique(options, GetCowFd()); ASSERT_TRUE(writer->Initialize()); ASSERT_TRUE(writer->AddCopy(2, 1)); - ASSERT_TRUE(writer->AddXorBlocks(3, &data, data.size(), 1, 1)); + ASSERT_TRUE(writer->AddXorBlocks(3, data.data(), data.size(), 1, 1)); ASSERT_TRUE(writer->Finalize()); ASSERT_TRUE(reader.Parse(cow_->fd)); ASSERT_FALSE(reader.VerifyMergeOps());