Integer overflow

Integer overflow

In computer programming, an integer overflow occurs when an arithmetic operation attempts to create a numeric value that is outside of the range that can be represented with a given number of digits – either higher than the maximum or lower than the minimum representable value. The most common result of an overflow is that the least significant representable digits of the result are stored; the result is said to wrap around the maximum (i.e. modulo a power of the radix, usually two in modern computers, but sometimes ten or another radix).

Comment
enIn computer programming, an integer overflow occurs when an arithmetic operation attempts to create a numeric value that is outside of the range that can be represented with a given number of digits – either higher than the maximum or lower than the minimum representable value. The most common result of an overflow is that the least significant representable digits of the result are stored; the result is said to wrap around the maximum (i.e. modulo a power of the radix, usually two in modern computers, but sometimes ten or another radix).
Depiction
Error message due to an integer signedness bug in the stack setup code of MASM 1.00.gif
Odometer rollover.jpg
Has abstract
enIn computer programming, an integer overflow occurs when an arithmetic operation attempts to create a numeric value that is outside of the range that can be represented with a given number of digits – either higher than the maximum or lower than the minimum representable value. The most common result of an overflow is that the least significant representable digits of the result are stored; the result is said to wrap around the maximum (i.e. modulo a power of the radix, usually two in modern computers, but sometimes ten or another radix). An overflow condition may give results leading to unintended behavior. In particular, if the possibility has not been anticipated, overflow can compromise a program's reliability and security. For some applications, such as timers and clocks, wrapping on overflow can be desirable. The C11 standard states that for unsigned integers, modulo wrapping is the defined behavior and the term overflow never applies: "a computation involving unsigned operands can never overflow." On some processors like graphics processing units (GPUs) and digital signal processors (DSPs) which support saturation arithmetic, overflowed results would be "clamped", i.e. set to the minimum or the maximum value in the representable range, rather than wrapped around.
Is primary topic of
Integer overflow
Label
enInteger overflow
Link from a Wikipage to an external page
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
www.allaboutcircuits.com/textbook/digital/chpt-2/binary-overflow/
web.archive.org/web/20121010025025/http:/www.cs.cmu.edu/~dbrumley/pubs/integer-ndss-07.pdf
projects.webappsec.org/Integer-Overflows
www.phrack.org/issues.html%3Fissue=60&id=10%23article
www.phrack.org/issues.html%3Fissue=60&id=9%23article
webstore.ansi.org/RecordDetail.aspx%3Fsku=ISO%2FIEC%209899:2011
www.cs.utah.edu/~regehr/papers/tosem15.pdf
Link from a Wikipage to another Wikipage
128-bit computing
16-bit computing
32-bit computing
4-bit computing
64-bit computing
8-bit computing
Ada (programming language)
Arbitrary-precision arithmetic
Ariane 5 Flight 501
Arithmetic
Binary numeral system
Boeing 787
Buffer overflow
C (programming language)
C++
C11 (C standard revision)
Carry (arithmetic)
Carry flag
Casino
Category:Computer arithmetic
Category:Computer security exploits
Category:Software bugs
C compiler
Central processing unit
Common Lisp
Compiler
Computer emergency response team
Computer graphics
Computer programming
C Sharp (programming language)
Design by contract
Digital signal processor
Donkey Kong (video game)
Donkey Kong Jr. Math
DOS
Double-precision floating-point format
European Aviation Safety Agency
Federal Aviation Administration
File:Error message due to an integer signedness bug in the stack setup code of MASM 1.00.gif
File:Odometer rollover.jpg
Floating point unit
Formal verification
Function overloading
Graphics processing unit
Grayscale
Heap overflow
High-dynamic-range imaging
Instruction set architecture
Integer (computer science)
Java (programming language)
JavaScript
Kill screen
Lamborghini American Challenge
MATLAB
Microsoft Macro Assembler
Minecraft
Modular arithmetic
Modulo operation
Most significant bit
NaN
NES
New York State Gaming Commission
Overflow flag
Pac-Man
Pascal (programming language)
Pixel
Pointer swizzling
Python (programming language)
Radix
Ram air turbine
Register width
Resorts World
Rust (programming language)
S.T.A.L.K.E.R.: Clear Sky
Saturated arithmetic
Saturation arithmetic
Scheme (programming language)
Search algorithm
Seed7
Signal processing
Signed number representations
Simulink
Smalltalk
Software bug
Software security
Software testing
Software update
Stack buffer overflow
Static program analysis
Super Mario Bros.
Super Nintendo Entertainment System
Swift (programming language)
Two's complement
Type safety
Undefined behavior
Unix signal
SameAs
Dépassement d'entier
Ganzzahlüberlauf
Heltallsoverflyt
Integer overflow
Integer overflow
m.06qksn
Przekroczenie zakresu liczb całkowitych
Q1423448
Rp2F
Tràn số nguyên
Програмне переповнення
Целочисленное переполнение
גלישה נומרית
سرریز عدد صحیح
طفح عدد صحيح
整数溢出
Subject
Category:Computer arithmetic
Category:Computer security exploits
Category:Software bugs
Thumbnail
Odometer rollover.jpg?width=300
WasDerivedFrom
Integer overflow?oldid=1123116741&ns=0
WikiPageInterLanguageLink
Arithmetischer Überlauf
WikiPageLength
30596
Wikipage page ID
2151421
Wikipage revision ID
1123116741
WikiPageUsesTemplate
A
Template:Anchor
Template:As of
Template:Math
Template:Reflist
Template:Short description
Template:Use American English