CCured: type-safe retrofitting of legacy software

Author:

Necula George C.1,Condit Jeremy1,Harren Matthew1,McPeak Scott1,Weimer Westley1

Affiliation:

1. University of California, Berkeley, Berkeley, CA

Abstract

This article describes CCured, a program transformation system that adds type safety guarantees to existing C programs. CCured attempts to verify statically that memory errors cannot occur, and it inserts run-time checks where static verification is insufficient.CCured extends C's type system by separating pointer types according to their usage, and it uses a surprisingly simple type inference algorithm that is able to infer the appropriate pointer kinds for existing C programs. CCured uses physical subtyping to recognize and verify a large number of type casts at compile time. Additional type casts are verified using run-time type information. CCured uses two instrumentation schemes, one that is optimized for performance and one in which metadata is stored in a separate data structure whose shape mirrors that of the original user data. This latter scheme allows instrumented programs to invoke external functions directly on the program's data without the use of a wrapper function.We have used CCured on real-world security-critical network daemons to produce instrumented versions without memory-safety vulnerabilities, and we have found several bugs in these programs. The instrumented code is efficient enough to be used in day-to-day operations.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference44 articles.

1. Dynamic typing in a statically typed language

2. Garbage collection in an uncooperative environment

3. Cardelli L. Donahue J. Glassman L. Jordan M. Kalsow B. and Nelson G. 1989. Modula-3 report (rev.). SRC Research rep. 52. Digital Equipment Corporation Systems Research Center Palo alto CA. Cardelli L. Donahue J. Glassman L. Jordan M. Kalsow B. and Nelson G. 1989. Modula-3 report (rev.). SRC Research rep. 52. Digital Equipment Corporation Systems Research Center Palo alto CA.

4. Carlisle M. C. 1996. Olden: Parallelizing programs with dynamic data structures on distributed-memory machines. Ph.D. dissertation. Princeton University Department of Computer Science Princeton NJ. Carlisle M. C. 1996. Olden: Parallelizing programs with dynamic data structures on distributed-memory machines. Ph.D. dissertation. Princeton University Department of Computer Science Princeton NJ.

Cited by 194 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Full Spatial and Temporal Memory Safety for C;IEEE Security & Privacy;2024-07

2. Comprehensive Memory Safety Validation: An Alternative Approach to Memory Safety;IEEE Security & Privacy;2024-07

3. SPP: Safe Persistent Pointers for Memory Safety;2024 54th Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN);2024-06-24

4. Highly Comprehensive and Efficient Memory Safety Enforcement with Pointer Tagging;2024 54th Annual IEEE/IFIP International Conference on Dependable Systems and Networks Workshops (DSN-W);2024-06-24

5. Advanced Memory and Shape Analyses;Computer Science Foundations and Applied Logic;2024

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3