Chapter 5. Integer Security

with Douglas A. Gwyn, David Keaton, and David Svoboda1

1. Douglas A. Gwyn is retired from the U.S. Army and is an Emeritus Member of INCITS PL22.11. David Keaton is a senior member of the technical staff in the CERT Program of Carnegie Mellon’s Software Engineering Institute (SEI) and chair of INCITS PL22.11. David Svoboda is a member of the technical staff for the SEI’s CERT.

Everything good is the transmutation of something evil: every god has a devil for a father.

—Friedrich Nietzsche, Sämtliche Werke: Kritische Studienausgabe

5.1. Introduction to Integer Security

The integers are formed by the natural numbers including 0 (0, 1, 2, 3, . . .) together with the negatives of the nonzero natural numbers (–1, –2, –3, ...

Get Secure Coding in C and C++, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.