paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Is unsafe an Achilles' Heel? A Comprehensive Study of Safety Requirements in Unsafe Rust Programming

unsafe 是阿喀琉斯之踵吗?Rust 不安全编程中安全需求的全面研究
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 2/10 · 该论文聚焦 Rust unsafe API 文档中安全需求的规范性与一致性,属于编程语言/软件工程中的安全文档与 API 设计研究。它与用户关注的 LLM/Agent 与静态分析交叉、浮点程序分析、贝叶斯程序分析等核心方向没有直接关系。引用 15 inbox
Mohan Cui, Shuran Sun, Hui Xu, Yangfan Zhou
crossref: 2026-09-12

AI 速览

一句话:对 Rust 标准库 unsafe API 文档中的安全需求进行系统研究,揭示其不一致与不足,并建议统一规范。

Rust 是一种强调效率与内存安全的强类型语言,但 Unsafe Rust 的正确使用对安全性至关重要。当前标准库中的 unsafe API 文档在安全需求描述上存在不一致和不完整的问题,缺乏统一规范。本文对 Unsafe Rust 编程中的安全需求进行了全面研究,分析了标准库 unsafe API 文档中安全需求描述的变化模式与缺陷。研究发现,这些文档在安全需求的表述上差异较大,且往往不够充分,可能导致用户误用 unsafe 代码。基于此,作者建议 unsafe API 文档应系统性地列出安全需求,为用户提供统一、明确的指导,以增强 Rust 的整体安全性。该研究为改善 Rust 不安全代码的文档规范提供了实证依据。

问题
Rust 的 unsafe 编程对安全至关重要,但当前 unsafe API 文档中的安全需求描述缺乏统一,存在不一致和不完整的问题。
方法
对标准库中的 unsafe API 文档进行系统性研究,分析其安全需求描述的变化与缺陷。
评估
通过分析文档中的不一致性和不完整性,提出 unsafe API 文档应系统化列出安全需求的建议。
原文摘要(Abstract)

Rust is an emerging, strongly-typed programming language focusing on efficiency and memory safety. With increasing projects adopting Rust, knowing how to use Unsafe Rust is crucial for Rust security. We observed that the description of safety requirements needs to be unified in Unsafe Rust programming. Current unsafe API documents in the standard library exhibited variations, including inconsistency and insufficiency. To enhance Rust security, we suggest unsafe API documents to list systematic descriptions of safety requirements for users to follow.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11365,
  title = {Is unsafe an Achilles' Heel? A Comprehensive Study of Safety Requirements in Unsafe Rust Programming},
  author = {Mohan Cui and Shuran Sun and Hui Xu and Yangfan Zhou},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3639136}
}