arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[C++] Allocate memory of a random size because the passed value is an uninitialized int32_t.

Open flashzxi opened this issue 1 year ago • 1 comments

Describe the bug, including details regarding any error messages, version, and platform.

In grouper.cc, allocated a random uint32_t size memory because of using uninitialized offset vector when group_nums == 0

see pr: https://github.com/apache/arrow/pull/43123 image

Component(s)

C++

flashzxi avatar Jul 03 '24 02:07 flashzxi

lines 780-782 were added by me

flashzxi avatar Jul 03 '24 02:07 flashzxi

Issue resolved by pull request 43123 https://github.com/apache/arrow/pull/43123

zanmato1984 avatar Nov 19 '24 09:11 zanmato1984