会议专题

OOBD: A Tool for Locating Array Bounds Errors in C/C++ Programs

It is quite difficult to stop a programmer from stepping across an array boundary and also hard to find out all of such bugs. This paper describes an easy and practical approach used to detect the errors about array bounds. With the help of instrumentation, checking the OOB (Out-Of-Bounds) errors in C/C++ programs can be converted into checking for condition violation. The diagnostic expressions inserted into the program will check the array references and generate error messages such as location and causes. So it eases programmers work on locating the array bounds errors. A prototype tool called OOBD (Out-Of-Bound Detecting) using this technique is designed and developed. The experiments show that it is effective in detecting array bounds errors on programs using C/C++ arrays or STL (Standard Template Library) vector.

Array bounds detecting C/C++ Programming instrumentation

Kunliang Han Qingguo Xu Yi Sun Xia Yin

School of Computer Engineering and Science Shanghai University 20072 Shanghai P.R. China

国际会议

2010 4th International Conference on Intelligent Information Techonlogy Application(第四届智能信息技术应用国际学术研讨会 IITA 2010)

秦皇岛

英文

344-347

2010-11-05(万方平台首次上网日期,不代表论文的发表时间)