跳到正文
Hacker News (Frontpage)· formerly_proven·· 2026-10-13AI 评分42

Rust 借用检查器被发现存在 11 年历史的不健全性漏洞

11 year old unsoundness bugs found in Rust borrow checker

AI 导读

一段利用 Drop 实现与 static Mutex 的代码可绕过 Rust 借用检查器,编译通过并读取已离开作用域的栈变量,开启 AddressSanitizer 后报 stack-use-after-scope 错误。该漏洞在当前 nightly 版本及至少低至 1.85.0 的稳定版上均可复现,作者估计其存在已长达 11 年。

每天 1 到 4 条出海新工具

Telegram 频道 @IndieRadarPro · 只发精选

在 Telegram 订阅

来源:Hacker News (Frontpage) · github.com