(also integer wraparound)
An integer overflow takes place when a computational operation generates a value exceeding the capacity of the assigned number of bits within a computer’s memory. This may result in the value “rolling over” and transforming into a smaller, inaccurate figure. If not managed appropriately, integer overflows can contribute to unanticipated actions, software failures, or potential security risks.
An integer underflow occurs when an arithmetic operation results in a value that is too small to be represented by the designated number of bits. Like integer overflow, it can lead to unexpected behavior or vulnerabilities.
See also: buffer overflow attack
We value your privacy