diff options
author | ponasenko-rs <ponasenko-rs@yandex-team.com> | 2023-11-30 14:54:16 +0300 |
---|---|---|
committer | ponasenko-rs <ponasenko-rs@yandex-team.com> | 2023-11-30 17:47:21 +0300 |
commit | 8d5508043c877ac75489f7efb06b0c8154a5d992 (patch) | |
tree | 918d0eb3d65c5ab6bd0dd1229d1983710f068560 | |
parent | 40d1dd813a185c95501119ac825c67b00d485ce5 (diff) | |
download | ydb-8d5508043c877ac75489f7efb06b0c8154a5d992.tar.gz |
Default initialize memory for null values in wire protocol.
-rw-r--r-- | yt/yt/client/table_client/wire_protocol.cpp | 2 |
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)) { |