From 7ec9d856f3f657a1e74908b240ae4a4069bab06b Mon Sep 17 00:00:00 2001 From: smellthemoon <64083300+smellthemoon@users.noreply.github.com> Date: Thu, 25 Jul 2024 02:31:44 +0800 Subject: [PATCH] fix: access address was not malloc (#34971) issue: #34972 fix string type data use memcpy to fill cause segv for not malloc enough memory in advance. Signed-off-by: lixinguo Co-authored-by: lixinguo --- internal/core/unittest/test_data_codec.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/core/unittest/test_data_codec.cpp b/internal/core/unittest/test_data_codec.cpp index 716f3bb574..f456461fc0 100644 --- a/internal/core/unittest/test_data_codec.cpp +++ b/internal/core/unittest/test_data_codec.cpp @@ -390,7 +390,6 @@ TEST(storage, InsertDataStringNullable) { ASSERT_EQ(new_payload->get_data_type(), storage::DataType::STRING); ASSERT_EQ(new_payload->get_num_rows(), data.size()); FixedVector new_data(data.size()); - memcpy(new_data.data(), new_payload->Data(), new_payload->DataSize()); data = {"test1", "test2", "", "", "test5"}; for (int i = 0; i < data.size(); ++i) { new_data[i] =