Skip to content

MINOR: [C++][IPC] Validate CSF sparse index buffer counts#50070

Open
metsw24-max wants to merge 1 commit into
apache:mainfrom
metsw24-max:ipc-csf-index-buffer-counts
Open

MINOR: [C++][IPC] Validate CSF sparse index buffer counts#50070
metsw24-max wants to merge 1 commit into
apache:mainfrom
metsw24-max:ipc-csf-index-buffer-counts

Conversation

@metsw24-max
Copy link
Copy Markdown
Contributor

ReadSparseCSFIndex (and GetSparseCSFIndexMetadata) size their vectors from ndim but iterate the unchecked flatbuffer buffer counts, so a CSF sparse tensor message with mismatched counts reads/writes past those vectors. The payload path already guards this via CheckSparseTensorBodyBufferCount; the file/stream path did not.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant