List, ListView and VarBin arrays do not check offsets in device memory
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the offsets.is_host() guards in list/array.rs, listview/array.rs and varbin/array.rs, and the comment in list/array.rs about device consumers. Read #11222 to see how the host-side check reads offset values. Done means offsets in device memory are validated before any value read, with tests covering unsorted and out-of-range device offsets. Deciding how to read device memory for the check is the open design question.
由索引模型根据 Issue 内容生成。
描述
Follow-up to #11222.
ListArray, ListViewArray and VarBinArray check their offsets when they are built: the offsets must be sorted, non-negative and within the length of the elements or bytes. #11222 makes ListArray and VarBinArray read the offset values for this check instead of the statistics of the offsets, because statistics can come from an untrusted file. ListViewArray already read the values. All three run the check only when the offsets are in host memory (the offsets.is_host() guards in list/array.rs, listview/array.rs and varbin/array.rs). Offsets in device memory are not checked.
So an array whose offsets are in device memory, for example after vortex-cuda decodes a file on the GPU, can be built with offsets that are not sorted or that point past the end of its elements or bytes. A kernel or an Arrow device export that trusts those offsets can then read out of bounds on the device. A comment in list/array.rs states the gap ("Device consumers must not assume device offsets were checked"), but nothing enforces it, and I have not checked which vortex-cuda paths build these arrays from file data.
Expected: an array with offsets in device memory has its offsets checked before any consumer reads values through them, as host arrays do.
🤖 Generated with Claude Code
- 主要语言
- Rust
- 星标
- 3.2k
- 派生
- 239
- 平均合并
- 1 天 4 小时
- 30 天内合并 PR
- 684
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vortex-data/vortex 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
vortex-data/vortex#12633 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
vortex-data/vortex#12628 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
vortex-data/vortex#12491 ·
维护者通常 1 天内回复
-
Fallible constructor for nested_case_when可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
vortex-data/vortex#11425 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 67/100
vortex-data/vortex#12635 ·
维护者通常 1 天内回复
查看 vortex-data/vortex 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
marklauter/tsong#110 ·
-
docs enhancement
难度 2/5 1-3 小时 新手友好度 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
area: engine bug needs milestone
难度 2/5 1-3 小时 新手友好度 70/100
Mudcrab-Team/mudcrab#1197 · 1 条评论 ·
维护者通常 1 天内回复