Commit 2c55fa7
committed
GH-50304: [C++][IPC] Reject negative sparse tensor shape and non-zero length
Validate dimension sizes and non_zero_length in GetSparseTensorMetadata so
malformed IPC SparseTensor messages are rejected before the values flow into
buffer-size computations. The now-redundant non-zero-length check in
ReadSparseCSXIndex is removed in favour of this central guard.1 parent e92d5d7 commit 2c55fa7
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1559 | 1559 | | |
1560 | 1560 | | |
1561 | 1561 | | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
1562 | 1565 | | |
1563 | 1566 | | |
1564 | 1567 | | |
| |||
1569 | 1572 | | |
1570 | 1573 | | |
1571 | 1574 | | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
1572 | 1579 | | |
1573 | 1580 | | |
1574 | 1581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2339 | 2339 | | |
2340 | 2340 | | |
2341 | 2341 | | |
2342 | | - | |
2343 | | - | |
2344 | | - | |
2345 | 2342 | | |
2346 | 2343 | | |
2347 | 2344 | | |
| |||
0 commit comments