integer overflow

Integer overflow is the result of trying to place into computer memory an integer (whole number) that is too large for the integer data type in a given system.

Integer overflow is the result of trying to place into computer memory an integer (whole number) that is too large for the integer data type in a given system. For example, if an integer data type allows integers up to two bytes or 16 bits in length (or an unsigned number up to decimal 65,535), and two integers are to be added together that will exceed the value of 65,535, the result will be integer overflow. According to ISO C99, the C programming language standard, the actual value resulting from an instance of integer overflow must be regarded as unpredictable. (In practice, integer overflow usually results in a "wrap-around" value where the addition of 1 to the maximum value results in a value of 0.)

Integer overflow can result, for example, in a request for dynamically allocated memory that is far too large or too small than that which is needed by the program. An integer overflow often passes undetected by the affected application. Because of this, the condition may lead to a security breach through a buffer overflow or other malicious code.

This was first published in January 2006

Continue Reading About integer overflow

Glossary

'integer overflow' is part of the:

View All Definitions

Dig deeper on Internet Application Security

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

File Extensions and File Formats

Powered by:

SearchSOA

TheServerSide

SearchCloudApplications

SearchAWS

SearchBusinessAnalytics

SearchFinancialApplications

SearchHealthIT

Close