Skip to content

[C++][IPC] Negative sparse tensor shape and non_zero_length are not validated #50304

Closed

Description

@rok

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++

Activity

  1. changed the title [-][C++][IPC] Validate sparse tensor index attributes[/-] [+][C++][IPC] Negative sparse tensor shape and non_zero_length are not validated[/+] on Jun 30, 2026
  2. added 5 commits that reference this issue on Jun 30, 2026
  3. added this to the 25.0.0 milestone on Jun 30, 2026
  4. rok commented on Jun 30, 2026

    @rok
    MemberAuthor

    Issue resolved by pull request 50305
    #50305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions