计算机工程与应用
計算機工程與應用
계산궤공정여응용
COMPUTER ENGINEERING AND APPLICATIONS
2015年
3期
69-73
,共5页
软件缺陷%缺陷模式%Cppcheck
軟件缺陷%缺陷模式%Cppcheck
연건결함%결함모식%Cppcheck
software defect%defect pattern%Cppcheck
能通过编译的C/C++程序代码可能依然隐含安全、设计或风格上缺陷,从而导致运行时出现内存泄露、运行异常等现象,难以完成软件需求所预期的目标。针对开源软件缺陷检测工具Cppcheck软件存在的不足,主要分析了Cppcheck架构、缺陷模式表示与实现,在对已收集350个缺陷模式分析总结基础上,对其完善,提高缺陷检测能力。通过两组实验验证改进Cppcheck工作的有效性。
能通過編譯的C/C++程序代碼可能依然隱含安全、設計或風格上缺陷,從而導緻運行時齣現內存洩露、運行異常等現象,難以完成軟件需求所預期的目標。針對開源軟件缺陷檢測工具Cppcheck軟件存在的不足,主要分析瞭Cppcheck架構、缺陷模式錶示與實現,在對已收集350箇缺陷模式分析總結基礎上,對其完善,提高缺陷檢測能力。通過兩組實驗驗證改進Cppcheck工作的有效性。
능통과편역적C/C++정서대마가능의연은함안전、설계혹풍격상결함,종이도치운행시출현내존설로、운행이상등현상,난이완성연건수구소예기적목표。침대개원연건결함검측공구Cppcheck연건존재적불족,주요분석료Cppcheck가구、결함모식표시여실현,재대이수집350개결함모식분석총결기출상,대기완선,제고결함검측능력。통과량조실험험증개진Cppcheck공작적유효성。
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.