跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2510.03461 (cs)
[提交于 2025年10月3日]

标题:Repairing Leaks in Resource Wrappers

作者:Sanjay Malakar, Michael D. Ernst, Martin Kellogg, Manu Sridharan
查看论文《Repairing Leaks in Resource Wrappers》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:A resource leak occurs when a program fails to release a finite resource like a socket, file descriptor or database connection. While sound static analysis tools can detect all leaks, automatically repairing them remains challenging. Prior work took the output of a detection tool and attempted to repair only leaks from a hard-coded list of library resource types. That approach limits the scope of repairable leaks: real-world code uses resource wrappers that store a resource in a field and must themselves be closed. This paper makes four key contributions to improve resource leak repair in the presence of wrappers. (1) It integrates inference of resource management specifications into the repair pipeline, enabling extant fixing approaches to reason about wrappers. (2) It transforms programs into variants that are easier to analyze, making inference, detection, and fixing tools more effective; for instance, it makes detection tools report problems closer to the root cause, often in a client of a resource wrapper rather than within the wrapper class itself. (3) A novel field containment analysis reasons about resource lifetimes, enabling repair of more leaks involving resources stored in fields. (4) It introduces a new repair pattern and more precise reasoning to better handle resources stored in non-final fields. Prior work fixed 41% of resource leak warnings in the NJR benchmark suite; our implementation Arodnap fixes 68%.
主题: 软件工程 (cs.SE); 密码学与安全 (cs.CR)
引用方式: arXiv:2510.03461 [cs.SE]
  (或者 arXiv:2510.03461v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2510.03461
期刊参考: 40th IEEE/ACM International Conference on Automated Software Engineering, ASE 2025

提交历史

来自:Sanjay Malakar
[v1] 2025年10月3日 星期五 19:34:19 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-10
切换浏览方式为:
cs
cs.CR

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站