首页> 外文会议>IEEE/ACM International Conference on Automated Software Engineering >IntPTI: Automatic integer error repair with proper-type inference
【24h】

IntPTI: Automatic integer error repair with proper-type inference

机译:IntPTI:具有适当类型推断的自动整数错误修复

获取原文

摘要

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.
机译:C / C ++中的整数错误是由算术运算引起的,产生的结果在某些类型中是无法表示的。它们可能导致严重的安全问题。由于C / C ++整数的语义复杂,在现实世界的程序中广泛存在整数错误,即使是专家也很容易修复它们。需要一种自动工具来:1)自动生成可帮助开发人员纠正错误代码的修补程序,以及2)提供足够的提示来帮助开发人员查看生成的修补程序并更好地理解C / C ++中的整数类型。在本文中,我们介绍了一种工具IntPTI,该工具实现了C程序所需的功能。 IntPTI为变量和表达式推断适当的类型,以消除表示问题,然后将派生的类型与从成功的人工编写补丁中整理出来的修复模式一起使用。 IntPTI提供了一个用户友好的Web界面,允许用户查看和管理修补程序。我们在7个实际项目中对IntPTI进行了评估,结果显示出其具有竞争力的修复准确性和在大型代码库上的可伸缩性。有关IntPTI的演示视频,请访问:https://youtu.be/9Tgd4A_FgZM。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号