SafeDrop: Detecting Memory Deallocation Bugs of Rust Programs via Static Data-flow Analysis

计算机科学 内存安全 Rust(编程语言) 静态分析 假阳性悖论 并行计算 编译程序 操作系统 程序设计语言 人工智能
作者
Mohan Cui,Chengjun Chen,Hui Xu,Yangfan Zhou
出处
期刊:ACM Transactions on Software Engineering and Methodology [Association for Computing Machinery]
卷期号:32 (4): 1-21 被引量:35
标识
DOI:10.1145/3542948
摘要

Rust is an emerging programming language that aims to prevent memory-safety bugs. However, the current design of Rust also brings side effects, which may increase the risk of memory-safety issues. In particular, it employs ownership-based resource management and enforces automatic deallocation of unused resources without using the garbage collector. It may therefore falsely deallocate reclaimed memory and lead to use-after-free or double-free issues. In this article, we study the problem of invalid memory deallocation and propose SafeDrop , a static path-sensitive data-flow analysis approach to detect such bugs. Our approach analyzes each function of a Rust crate iteratively in a flow-sensitive and field-sensitive way. It leverages a modified Tarjan algorithm to achieve scalable path-sensitive analysis and a cache-based strategy for efficient inter-procedural analysis. We have implemented our approach and integrated it into the Rust compiler. Experiment results show that the approach can successfully detect all such bugs in our experiments with a limited number of false positives and incurs a very small overhead compared to the original compilation time.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Crystal完成签到,获得积分10
刚刚
楠湘完成签到,获得积分10
刚刚
刚刚
滴滴完成签到,获得积分10
1秒前
982289172发布了新的文献求助10
1秒前
你好呀完成签到 ,获得积分10
1秒前
starry完成签到,获得积分10
2秒前
沉默诗兰完成签到,获得积分10
2秒前
tong发布了新的文献求助10
2秒前
3秒前
VV发布了新的文献求助10
3秒前
酒酒完成签到,获得积分10
3秒前
Tia完成签到 ,获得积分10
3秒前
4秒前
Dawn完成签到,获得积分10
4秒前
科研通AI6.3的应助被清辉影采纳,获得10
4秒前
在水一方的应助被fortuna采纳,获得10
4秒前
5秒前
5秒前
文艺紫菜发布了新的文献求助10
6秒前
kinsley完成签到,获得积分10
6秒前
6秒前
Lucas的应助被punch采纳,获得10
6秒前
傢誠发布了新的文献求助10
6秒前
6秒前
快乐的鱼发布了新的文献求助10
7秒前
orixero的应助被zhz采纳,获得10
7秒前
7秒前
zz发布了新的文献求助10
8秒前
所所的应助被PEITON采纳,获得10
9秒前
jun完成签到,获得积分10
9秒前
qiaobbbbb发布了新的文献求助10
10秒前
章绝施发布了新的文献求助10
10秒前
cc发布了新的文献求助10
10秒前
66666发布了新的文献求助30
10秒前
10秒前
petrichor完成签到,获得积分10
11秒前
charles完成签到,获得积分10
12秒前
星辰大海的应助被123采纳,获得10
12秒前
12秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
拉伸高分子熔体中缠结行为的模拟和小角中子散射研究 1700
The World Atlas of Wine 9th edition 1000
奈特基础组织学:配套组织病理学(第4版)(Netter's Essential Histology With Correlated Histopathology) 800
八旗制度の研究 600
高分子基功能界面水蒸发材料与应用研究 500
外场增强的水汽发电研究 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8187592
求助须知:如何正确求助?哪些是违规求助? 9575705
关于积分的说明 21842471
捐赠科研通 7785407
什么是DOI,文献DOI怎么找? 3435057
关于科研通互助平台的介绍 2559461
邀请新用户注册赠送积分活动 2481952