From d881abec1240d6ef143b0cb07c4312d383c43246 Mon Sep 17 00:00:00 2001 From: Zhigao Tong Date: Wed, 3 Aug 2022 10:12:51 +0800 Subject: [PATCH] Use memcpy --- dbms/src/Storages/Transaction/tests/gtest_tidb_collator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Storages/Transaction/tests/gtest_tidb_collator.cpp b/dbms/src/Storages/Transaction/tests/gtest_tidb_collator.cpp index 904cefb26ef..0ba71d6bbbb 100644 --- a/dbms/src/Storages/Transaction/tests/gtest_tidb_collator.cpp +++ b/dbms/src/Storages/Transaction/tests/gtest_tidb_collator.cpp @@ -237,7 +237,7 @@ void testCollator() } { strs.resize(strs.size() + s.size()); - memcpySmallAllowReadWriteOverflow15( + std::memcpy( &strs[strs.size() - s.size()], s.data(), s.size());