mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-28 12:40:49 +00:00
Fix default string use after free
This commit is contained in:
parent
fef22a7fd2
commit
dc8f201d4c
@ -230,12 +230,12 @@ void IPolygonDictionary::getString(
|
||||
const auto ind = getAttributeIndex(attribute_name);
|
||||
checkAttributeType(name, attribute_name, dict_struct.attributes[ind].underlying_type, AttributeUnderlyingType::utString);
|
||||
|
||||
const auto & null_value = StringRef{getNullValue<String>(dict_struct.attributes[ind].null_value)};
|
||||
const auto & null_value = getNullValue<String>(dict_struct.attributes[ind].null_value);
|
||||
|
||||
getItemsImpl<String, StringRef>(
|
||||
getItemsImpl<String, String>(
|
||||
ind,
|
||||
key_columns,
|
||||
[&](const size_t, const StringRef value) { out->insertData(value.data, value.size); },
|
||||
[&](const size_t, const String value) { out->insertData(value.data(), value.size()); },
|
||||
[&](const size_t) { return null_value; });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user