Software defect pattern analysis and location based on Cppcheck

Shijin ZHANG,Zhaowei SHANG
DOI: https://doi.org/10.3778/j.issn.1002-8331.1304-0138
2015-01-01
Abstract:The C/C++ program which is compiled well does not always guarantee that there are no defects in the code. There may still contain defects relativing to securities, design and code style, therefore it may result in memory leak or misuse of pointers so that it is difficult to accomplish the expected goal of software requirements. Aiming to software defection tool of Cppcheck’s insufficiency for open software defect, this paper mainly analyses the Cppcheck architecture, defect pattern representation and implementation, as well as on the basis of summarizing 350 defect patterns to improve Cppcheck. It makes two relevant experiments to verify the effectiveness of improved Cppcheck.
What problem does this paper attempt to address?