Understanding integer overflow in C/C++

W Dietz, P Li, J Regehr, V Adve - ACM Transactions on Software …, 2015 - dl.acm.org
… In some domains, saturation is a reasonable solution to the problem of integer overflow, but
since saturating semantics are not used by C or C++, we will not consider it further. Processor…

[PDF][PDF] Integers In C: An Open Invitation To Security Attacks?

Z Coker, S Hasan, J Overbey, M Hafiz, C Kästner - 2014 - kilthub.cmu.edu
… They distinguished between intentional and unintentional uses of defined and undefined
C semantics to understand integer overflows. They found that the intentional use of undefined …

Cleanness checking of string manipulations in C programs via integer analysis

N Dor, M Rodeh, M Sagiv - International Static Analysis Symposium, 2001 - Springer
… We present a new algorithm for statically detecting buffer overflow defects … can understand
that when the allocation size of the parameter cp is less than or equal to 6, a buffer overflow

[HTML][HTML] Preventing arithmetic overflows in Alloy

A Milicevic, D Jackson - Science of Computer Programming, 2014 - Elsevier
… Prototypical overflow anomalies While a wraparound semantics for integer overflow is
consistent and easily explained, its lack of correspondence to unbounded arithmetic produces a …

Sound input filter generation for integer overflow errors

F Long, S Sidiroglou-Douskos, D Kim… - Proceedings of the 41st …, 2014 - dl.acm.org
… We present a system, SIFT, for generating input filters that nullify integer overflowinteger
overflow errors in the computations of the sizes of allocated memory blocks or the number of …

An intorduction to the interface between c and r

A Chaudhary - 2007 - infoscience.epfl.ch
… C interface is quite simple and has been explained with the help of examples. The code for
… Sometime, you may face the problem of stack overflow indicating lack of physical memory …

[图书][B] Secure Coding in C and C++

RC Seacord - 2013 - books.google.com
… This book provides a detailed explanation of common programming errors in C and C++ …
integer overflows and truncations, and calling functions with the wrong number of arguments. …

A study of c/c++ code weaknesses on stack overflow

H Zhang, S Wang, H Li, TH Chen… - IEEE Transactions on …, 2021 - ieeexplore.ieee.org
… Our study aims to gain a deep understanding of code weaknesses in Stack Overflow C/C++ …
By the quantitative analyses described in Section 3.2.2, we aim to understand whether code …

SolType: refinement types for arithmetic overflow in solidity

B Tan, B Mariano, SK Lahiri, I Dillig… - Proceedings of the ACM on …, 2022 - dl.acm.org
… techniques that can be used to prevent integer overflows. Specifically, we propose a refinement
… e must be evaluated before e′, then we have cc′. As we will see shortly, this partial …

Conditions for underflow and overflow of an arithmetic stack

DT Goodwin - The Computer Journal, 1977 - academic.oup.com
… Another application of more general interest is the provision of compile time and run time
checks on whether certain high level language programs will cause underflow or overflow of a …