jmestwa-coder commented on code in PR #50038:
URL: https://github.com/apache/arrow/pull/50038#discussion_r3418658901
##########
cpp/src/arrow/ipc/reader.cc:
##########
@@ -2336,26 +2337,40 @@ Result<std::shared_ptr<SparseIndex>> ReadSparseCSXIndex(
/*allow_short_read=*/false));
std::vector<int64_t> indices_shape({non_zero_length});
Review Comment:
good catch. added a guard rejecting negative non_zero_length up front. the
bare Tensor constructor used here skips CheckTensorValidity, so a negative
shape wasn't being caught downstream.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]