[C++] NumericArray<T> may not initialize values_ when construct #44541
Labels
Component: C++
Critical Fix
Bugfixes for security vulnerabilities, crashes, or invalid data.
Type: bug
Milestone
Describe the bug, including details regarding any error messages, version, and platform.
The problem raised from [1].
NumericArray<T>
usesvalues_
as a cache of typed values[2]. This might not being set when calling thePrimitiveArray::PrimitiveArray
constructor [3]. The code can be reproduced like:This might be fixed with:
But I don't know would I missed something.
[1] #44190
[2]
arrow/cpp/src/arrow/array/array_primitive.h
Line 131 in a3c39ec
[3]
arrow/cpp/src/arrow/array/array_primitive.h
Line 122 in a3c39ec
Component(s)
C++
The text was updated successfully, but these errors were encountered: