You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++][Parquet] Fix DeltaLengthByteArrayEncoder memory pool tracking and zero-length UnsafeAppend #55685
Describe the bug, including details regarding any error messages, version, and platform.
DeltaLengthByteArrayEncoder in cpp/src/parquet/encoder.cc has two bugs:
Its constructor writes EncoderImpl(descr, Encoding::DELTA_LENGTH_BYTE_ARRAY, pool = ::arrow::default_memory_pool()), overwriting the caller-provided MemoryPool* before initializing sink_ and length_encoder_ (this also affects DeltaByteArrayEncoder::suffix_encoder_).
DeltaLengthByteArrayEncoder::Put(const T* src, int num_values) calls sink_.UnsafeAppend(src[idx].ptr, src[idx].len) unconditionally, passing nullptr to memcpy under UBSan on zero-length ByteArray(0, nullptr) values.
Split out from #55487 / #55488 so these fixes can be reviewed separately from the PutBinaryArray performance optimization.
Activity