Describe the enhancement requested
GetSparseTensorMetadata in cpp/src/arrow/ipc/metadata_internal.cc reads per-dimension TensorDim.size and the tensor's non_zero_length straight from an IPC SparseTensor flatbuffer message without any range check.
This can yield tensors with negative dimensions and defeats the buffer-size validation in the sparse index readers.
Component(s)
C++
Describe the enhancement requested
GetSparseTensorMetadataincpp/src/arrow/ipc/metadata_internal.ccreads per-dimensionTensorDim.sizeand the tensor'snon_zero_lengthstraight from an IPCSparseTensorflatbuffer message without any range check.This can yield tensors with negative dimensions and defeats the buffer-size validation in the sparse index readers.
Component(s)
C++