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());