Array Bounds Model Checking in C Code Based on Predicate Abstraction

被引:0
作者
Bai, Yunwei [1 ,2 ]
Xu, Qingguo [1 ]
机构
[1] Shanghai Univ, Sch Comp Engn & Sci, Shanghai 200444, Peoples R China
[2] Shanghai Key Lab Comp Software Evaluating & Testi, Shanghai 200444, Peoples R China
来源
2015 INTERNATIONAL CONFERENCE ON COMPUTER APPLICATION TECHNOLOGIES (CCATS) | 2015年
关键词
array bounds; model checking; predicate abstraction; nuXmv;
D O I
10.1109/CCATS.2015.11
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
As C program compilers do not check the array bounds during compiling, array index out of bounds attacks cause serious security problems. Array bound checking is becoming more and more important, however, original array bound checking, which needs programmers manual working, wastes too much time. In this paper, we propose a strategy to address this issue for C code. In this strategy, we use predicate abstraction in the generated CFG ( control flow graph), then the CFG is translated to the SMV model using a translating algorithm. Finally, we use the model checking tool-nuXmv to check the array bound. If the array is out of bound, the nuXmv will give the counter-examples.
引用
收藏
页码:3 / 8
页数:6
相关论文
共 15 条
[1]  
Ball T, 2001, LECT NOTES COMPUT SC, V2102, P260
[2]   Automatic predicate abstraction of C programs [J].
Ball, T ;
Millstein, T ;
Majumdar, R ;
Rajamani, SK .
ACM SIGPLAN NOTICES, 2001, 36 (05) :203-213
[3]  
Bozzano M., 2014, Technical report, FBK-Via Sommarive 18, 38055
[4]  
Cavada R, 2013, NUSMV 2 5 USER MANUA, P24
[5]  
Chaki S, 2003, LECT NOTES COMPUT SC, V2860, P19
[6]  
Clarke EdmundM., 2000, P INT C COMPUTER AID, P154, DOI [10.1007/1072216715, DOI 10.1007/1072216715]
[7]  
Dhurjati D., 2006, 28th International Conference on Software Engineering Proceedings, P162, DOI 10.1145/1134285.1134309
[8]   CSSV: Towards a realistic tool for statically detecting all buffer overflows in C [J].
Dor, N ;
Rodeh, M ;
Sagiv, M .
ACM SIGPLAN NOTICES, 2003, 38 (05) :155-167
[9]  
Han Kunlinag, 2012, C PROGRAM MEMORY SAF
[10]   Abstractions from proofs [J].
Henzinger, TA ;
Jhala, R ;
Majumdar, R ;
McMillan, KL .
ACM SIGPLAN NOTICES, 2004, 39 (01) :232-244