作者
Boqin Qin, Yilun Chen, Zeming Yu, Linhai Song, Yiying Zhang
发表日期
2020/6/11
图书
Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation
页码范围
763-779
简介
Rust is a young programming language designed for systems software development. It aims to provide safety guarantees like high-level languages and performance efficiency like low-level languages. The core design of Rust is a set of strict safety rules enforced by compile-time checking. To support more low-level controls, Rust allows programmers to bypass these compiler checks to write unsafe code.
It is important to understand what safety issues exist in real Rust programs and how Rust safety mechanisms impact programming practices. We performed the first empirical study of Rust by close, manual inspection of 850 unsafe code usages and 170 bugs in five open-source Rust projects, five widely-used Rust libraries, two online security databases, and the Rust standard library. Our study answers three important questions: how and why do programmers write unsafe code, what memory-safety issues real …
引用总数
学术搜索中的文章
B Qin, Y Chen, Z Yu, L Song, Y Zhang - Proceedings of the 41st ACM SIGPLAN Conference on …, 2020