From fd1cdfbd63e289f089f09fe6cee7c504352f9485 Mon Sep 17 00:00:00 2001 From: Alex Owens Date: Fri, 20 Dec 2024 11:47:45 +0000 Subject: [PATCH] Bugfix 4897570890562900007: Fix decoding of fields with >2^16 blocks --- cpp/arcticdb/storage/memory_layout.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/arcticdb/storage/memory_layout.hpp b/cpp/arcticdb/storage/memory_layout.hpp index 1536369612..05b6431549 100644 --- a/cpp/arcticdb/storage/memory_layout.hpp +++ b/cpp/arcticdb/storage/memory_layout.hpp @@ -101,15 +101,15 @@ enum class BitmapFormat : uint8_t { // pointer to the first block struct EncodedField { EncodedFieldType type_ = EncodedFieldType::UNKNOWN; - uint16_t shapes_count_ = 0u; - uint16_t values_count_ = 0u; + uint32_t shapes_count_ = 0u; + uint32_t values_count_ = 0u; uint32_t sparse_map_bytes_ = 0u; uint32_t items_count_ = 0u; BitmapFormat format_ = BitmapFormat::UNKNOWN; std::array blocks_; }; -static_assert(sizeof(EncodedField) == 60); +static_assert(sizeof(EncodedField) == 64); enum class EncodingVersion : uint16_t { V1 = 0,