DocumentCode :
3073591
Title :
Context-Sensitive Interprocedural Defect Detection Based on a Unified Symbolic Procedure Summary Model
Author :
Zhao, Yunshan ; Gong, Yunzhan ; Liu, Li ; Xiao, Qing ; Yang, Zhaohong
Author_Institution :
State Key Lab. of Networking & Switching Tech, Beijing Univ. of Posts & Telecommun., Beijing, China
fYear :
2011
fDate :
13-14 July 2011
Firstpage :
51
Lastpage :
60
Abstract :
Precise interprocedural analysis is crucial for defect detection faced with the problem of procedure call. Procedure summary is an effective and classical technique to handle this problem. However, there is no general recipe to construct and instantiate procedure summaries with context-sensitivity. This paper addresses the above challenge by introducing a unified symbolic procedure summary model (PSM), which consists of three aspects: (1) the post-condition briefly records the invocation side effects to calling context, (2) the feature means some inner attributes that might cause both the dataflow and control-flow transformation and (3) the pre-condition implies some potential dataflow safety properties that should not be violated at the call site, or there would exist defects. We represent each aspect of PSM in a three-valued logic: <;Conditional Constraints, Symbolic Expression, Abstract Value>;. Moreover, by comparing the concrete call site context (CSC) with the conditional constraints (CC), we achieve context-sensitivity while instantiating the summary. Furthermore, we proposed a summary transfer function for capturing the nesting call effect of a procedure, which transfers the procedure summary in a bottom-up manner. Algorithms are proposed to construct and instantiate the summary model at concrete call sites with context-sensitivity. Experimental results on 10 open source GCC benchmarks attest to the effectiveness of our technique on detecting null pointer dereference and out of boundary defects.
Keywords :
content management; data flow analysis; probabilistic logic; ternary logic; PSM; abstract value; bottom-up manner algorithm; boundary defect; concrete call site context; conditional constraint; context sensitivity; context-sensitive interprocedural defect detection; control-flow transformation; dataflow transformation; null pointer dereference; open source GCC benchmark; potential dataflow safety property; summary transfer function; symbolic expression; three-valued logic; unified symbolic procedure summary model; Arrays; Concrete; Context; Context modeling; Safety; Sensitivity; Transfer functions; context-sensitive; inter/intra-procedural analysis; procedure summary; symbolic execution;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Quality Software (QSIC), 2011 11th International Conference on
Conference_Location :
Madrid
ISSN :
1550-6002
Print_ISBN :
978-1-4577-0754-4
Electronic_ISBN :
1550-6002
Type :
conf
DOI :
10.1109/QSIC.2011.15
Filename :
6004311
Link To Document :
بازگشت