Please wait a minute...
Journal of Zhejiang University-SCIENCE A (Applied Physics & Engineering)  2005, Vol. 6 Issue (1): 63-70    DOI: 10.1631/jzus.2005.A0063
Computer & Information Science     
Tools to make C programs safe: a deeper study
WANG Ji-min, PING Ling-di, PAN Xue-zeng, SHEN Hai-bin, YAN Xiao-lang
School of Computer Science, Zhejiang University, Hangzhou 310027, China; Interdisciplinary Research Center on Soc, Zhengjiang University, Hangzhou 310027, China
Download:     PDF (0 KB)     
Export: BibTeX | EndNote (RIS)      

Abstract  The C programming language is expressive and flexible, but not safe; as its expressive power and flexibility are obtained through unsafe language features, and improper use of these features can lead to program bugs whose causes are hard to identify. Since C is widely used, and it is impractical to rewrite all existing C programs in safe languages, so ways must be found to make C programs safe. This paper deals with the unsafe features of C and presents a survey on existing solutions to make C programs safe. We have studied binary-level instrumentation tools, source checkers, source-level instrumentation tools and safe dialects of C, and present a comparison of different solutions, summarized the strengths and weaknesses of different classes of solutions, and show measures that could possibly improve the accuracy or alleviate the overhead of existing solutions.

Key wordsUnsafe feature      C language      Instrumentation tools      Safe dialect     
Received: 19 October 2003     
CLC:  TP314  
Cite this article:

WANG Ji-min, PING Ling-di, PAN Xue-zeng, SHEN Hai-bin, YAN Xiao-lang. Tools to make C programs safe: a deeper study. Journal of Zhejiang University-SCIENCE A (Applied Physics & Engineering), 2005, 6(1): 63-70.

URL:

http://www.zjujournals.com/xueshu/zjus-a/10.1631/jzus.2005.A0063     OR     http://www.zjujournals.com/xueshu/zjus-a/Y2005/V6/I1/63

[1] Jian-peng ZHOU, Ce SHI. Efficient SIMD optimization for media processors[J]. Journal of Zhejiang University-SCIENCE A (Applied Physics & Engineering), 2008, 9(4): 524-530.