Stack overflow in `triu`
評估
研究方向
Start by running the Rust example from the issue and then inspect the ArrayRef::triu entry point linked in the report. Verify that the transposed, inserted-axis view no longer overflows the stack, and add or update coverage for this case so the regression is prevented.
由索引模型根據 Issue 內容生成。
描述
The docs don't mention this as a hazard, so I figure it's a bug: https://docs.rs/ndarray/latest/ndarray/struct.ArrayRef.html#method.triu
use ndarray::{Array2, Axis};
fn main() {
let a: Array2<f64> = Array2::from_shape_fn((3, 4), |(i, j)| (i * 4 + j) as f64);
let ft = a.t();
let widened = ft.insert_axis(Axis(2));
widened.triu(0);
}
Found using a fuzzer.
- 主要語言
- Rust
- 星號
- 4.3k
- 分支
- 391
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
rust-ndarray/ndarray 的其他 Issue
-
.is_all_nan() returns true for an all-finite array可能已有人在做 @youdie006 於 55 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
rust-ndarray/ndarray#1612 · 1 則留言 · 1 個 reaction ·
-
難度 4/5 3-5 天 新手友好度 48/100
rust-ndarray/ndarray#1617 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 48/100
rust-ndarray/ndarray#1610 ·
-
Empty Array lead to "The strides must not allow any element to be referenced by two different indices"可能已有人在做 @Guflly 於 67 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 72/100
rust-ndarray/ndarray#1609 ·
-
Accept owned arrays in `concatenate` and `stack`可能已有人在做 @watsaig 於 159 天前認領。 未關閉breaking-change enhancement
難度 3/5 1-2 天 新手友好度 45/100
rust-ndarray/ndarray#1591 · 2 則留言 ·
查看 rust-ndarray/ndarray 的全部 Issue
相似的 Issue
-
enhancement user-priority/P2
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
agent:triaged bug bughunt pm:npm priority:p1
難度 2/5 1-3 小時 新手友好度 85/100
SocketDev/socket-patch#1127 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆