The Community for Technology Leaders
2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE) (2017)
Urbana, IL, USA
Oct. 30, 2017 to Nov. 3, 2017
ISBN: 978-1-5386-3976-4
pp: 996-1001
Xi Cheng , School of Software, TNLIST, KLISS, Tsinghua University, China
Min Zhou , School of Software, TNLIST, KLISS, Tsinghua University, China
Xiaoyu Song , Electrical and Computer Engineering, Portland State University, USA
Ming Gu , School of Software, TNLIST, KLISS, Tsinghua University, China
Jiaguang Sun , School of Software, TNLIST, KLISS, Tsinghua University, China
ABSTRACT
Integer errors in C/C++ are caused by arithmetic operations yielding results which are unrepresentable in certain type. They can lead to serious safety and security issues. Due to the complicated semantics of C/C++ integers, integer errors are widely harbored in real-world programs and it is error-prone to repair them even for experts. An automatic tool is desired to 1) automatically generate fixes which assist developers to correct the buggy code, and 2) provide sufficient hints to help developers review the generated fixes and better understand integer types in C/C++. In this paper, we present a tool IntPTI that implements the desired functionalities for C programs. IntPTI infers appropriate types for variables and expressions to eliminate representation issues, and then utilizes the derived types with fix patterns codified from the successful human-written patches. IntPTI provides a user-friendly web interface which allows users to review and manage the fixes. We evaluate IntPTI on 7 real-world projects and the results show its competitive repair accuracy and its scalability on large code bases. The demo video for IntPTI is available at: https://youtu.be/9Tgd4A_FgZM.
INDEX TERMS
Maintenance engineering, Tools, Semantics, Security, Scalability, Runtime, Computer bugs
CITATION

X. Cheng, M. Zhou, X. Song, M. Gu and J. Sun, "IntPTI: Automatic integer error repair with proper-type inference," 2017 32nd IEEE/ACM International Conference on Automated Software Engineering (ASE), Urbana, IL, USA, 2017, pp. 996-1001.
doi:10.1109/ASE.2017.8115718
222 ms
(Ver 3.3 (11022016))