arrow
Return

Tolerating C Integer Error via Precision Elevation

delete2019-02-01
delete1
PRE
AI
X
Xi Cheng
周
周旻 (Min Zhou) *
X
Xiaoyu Song
M
Ming Gu
J
Jiaguang Sun
DOI:10.1109/TC.2018.2866388delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
In C programs, integer error is a common yet important kind of defect due to arithmetic operations that produce unrepresentable values in certain types. Integer errors are harbored in a wide range of applications and possibly lead to serious software failures and exploitable vulnerabilities. Due to the complicated semantics of C, manually preventing integer errors is challenging even for experienced developers. In this paper we propose a novel approach to automate C integer error repair by elevating the precision of arithmetic operations according to a set of code transformation rules. A large portion of integer errors can be repaired by recovering expected results (i.e., tolerance) instead of removing program functionality. Our approach is fully automatic without requiring code specifications. Furthermore, the transformed code is ensured to be well-typed and has conservativeness property with respect to the original code. Our approach is implemented as a prototype CINTFIX which succeeds in repairing all the integer errors from 7 categories in NIST's Juliet Test Suite. Furthermore, CINTFIX is evaluated on large code bases in SPEC CINT2000, scaling to 366 KLOC within 126 seconds while the transformed code has 10.5 percent slowdown on average. The evaluation results substantiate the potential of our approach in real-world scenarios.
Keywords:
Integer error
tolerability
code transformation
Integer Codes Correcting Burst Errors within a Byte
err2013-02-01
err24
PREAI
errRadonjic, Aleksandar; Vujicic, Vladimir
errShare
errSave
Integer DCT Approximation With Arbitrary Size and Adjustable Precision
err2020-01-01
err2
PREAI
errThomaz, Lucas A.; Assuncao, Pedro A. A.; Tavora, Luis M. N.; de Faria, Sergio M. M.
errShare
errSave
ETCIM: Error-Tolerant Digital CIM Processor With Redundancy-Free Hard Error Repair and Run-Time Soft Error Correction
err2025-05-20
err0
PREAI
errYiqi Wang; Zhen He; Chenggang Zhao; Zihan Wu; Mingyu Gao; Huiming Han; Shaojun Wei; Yang Hu; Fengbin Tu; Shouyi Yin
errShare
errSave
Improving 3D DRAM Fault Tolerance Through Weak Cell Aware Error Correction
err2017-05-01
err6
PREAI
errWang, Hao; Zhao, Kai; Lv, Minjie; Zhang, Xuebin; Sun, Hongbin; Zhang, Tong
errShare
errSave
errShare
errSave

Journal

IEEE Transactions on Computers cover
IEEE Transactions on Computers
IF:
3.8
Papers:
5.4K
Citations:
1.1W

Organization

P
portland state university
Scholars:
147
Papers: 85
Citations: 2.0K
Tsinghua University cover
Tsinghua University
Scholars:
1.2W
Papers: 4.2K
Citations: 9.9W
Cited Papers

Cited Papers

Structure and function of negative-strand RNA virus polymerase complexes
err2021-01-01
err0
PREAI
errJesse D. Pyle; Sean P.J. Whelan; Louis-Marie Bloyet
errShare
errSave
Induction of pathogen resistance and pathogenesis‐related genes in tobacco by a heat‐stable Trichoderma mycelial extract and plant signal messengers
err2006-04-28
err0
PREAI
errPi‐Fang Linda Chang; Yi Xu; Meena L. Narasimhan; Kheng T. Cheah; Matilde Paino D'Urzo; Barbara Damsz; Andrzej K. Kononowicz; Laura Abad; Paul M. Hasegawa; Ray A. Bressan
errShare
errSave
errShare
errSave
Understanding Integer Overflow in C/C plus
err2015-12-02
err44
PREAI
errDietz, Will; Li, Peng; Regehr, John; Adve, Vikram
errShare
errSave
Relaxation of persistent photoconductivity inAl0.3Ga0.7As
err1990-09-15
err0
PREAI
errJ. Y. Lin; A. Dissanayake; G. Brown; H. X. Jiang
errShare
errSave
Structure and reactivity of a model catalyst alloy under realistic conditions
err2008-04-17
err0
PREAI
errR Westerström; J G Wang; M D Ackermann; J Gustafson; A Resta; A Mikkelsen; J N Andersen; E Lundgren; O Balmes; X Torrelles; J W M Frenken; B Hammer
errShare
errSave
GenProg: A Generic Method for Automatic Software Repair
err2012-01-01
err594
PREAI
errLe Goues, Claire; ThanhVu Nguyen; Forrest, Stephanie; Weimer, Westley
errShare
errSave
researcher View more