aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorponasenko-rs <ponasenko-rs@yandex-team.com>2023-11-30 14:54:16 +0300
committerponasenko-rs <ponasenko-rs@yandex-team.com>2023-11-30 17:47:21 +0300
commit8d5508043c877ac75489f7efb06b0c8154a5d992 (patch)
tree918d0eb3d65c5ab6bd0dd1229d1983710f068560
parent40d1dd813a185c95501119ac825c67b00d485ce5 (diff)
downloadydb-8d5508043c877ac75489f7efb06b0c8154a5d992.tar.gz
Default initialize memory for null values in wire protocol.
-rw-r--r--yt/yt/client/table_client/wire_protocol.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/yt/yt/client/table_client/wire_protocol.cpp b/yt/yt/client/table_client/wire_protocol.cpp
index 904969d78a..88edc852c7 100644
--- a/yt/yt/client/table_client/wire_protocol.cpp
+++ b/yt/yt/client/table_client/wire_protocol.cpp
@@ -896,6 +896,7 @@ private:
void DoReadUnversionedValue(bool captureValues, TUnversionedValue* value)
{
+ *value = TUnversionedValue{};
ui64* rawValue = reinterpret_cast<ui64*>(value);
rawValue[0] = ReadUint64();
if (IsStringLikeType(value->Type)) {
@@ -907,6 +908,7 @@ private:
void DoReadVersionedValue(bool captureValues, TVersionedValue* value)
{
+ *value = TVersionedValue{};
ui64* rawValue = reinterpret_cast<ui64*>(value);
rawValue[0] = ReadUint64();
if (IsStringLikeType(value->Type)) {