mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
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 <xinguo.li@zilliz.com> Co-authored-by: lixinguo <xinguo.li@zilliz.com>
This commit is contained in:
parent
166fc902b0
commit
7ec9d856f3
@ -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<std::string> 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] =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user