ITADN

Segmentation fault when calling function `is_term_resized`

#223Closedcicilzx 创建于 2024-09-16
C
cicilzxcommented
Hi, I'm developing a fuzzer to test the safe abstraction, and I fonnd a segmentation fault when calling function `is_term_resized`. I have tried many inputs, and all of them can trigger the bug. Below is an example input to trigger the segmentation fault. I think it's because missing some pre-condition or post-condition checking when calling the unsafe function `ll::is_term_resized`. ```Rust use ncurses::is_term_resized; fn main() { let lines = 1; let cols = 1; let _ = is_term_resized(lines, cols); } ``` The output is: ```sh zsh: segmentation fault cargo run ```
关闭于 2024-10-07 4 条评论