Integer overflow occurs when a value exceeds the range a target integer type can represent. A conversion can trigger it even when the original value is stored in a larger type. section 10.7.1
Ariane 5 navigation failure
The navigation system stored horizontal velocity as a 64-bit floating-point value, then converted it to a 16-bit signed integer, whose maximum is 32,767. The faster Ariane 5 exceeded that limit; the conversion caused an unhandled exception and crashed the navigation computer. section 10.7.1
The overflow was the trigger; the surrounding decisions made it catastrophic:
- Code designed to align navigation computers on the launchpad kept running for 50 seconds after liftoff, even though it was no longer needed. section 10.7.2
- Engineers reused code that had been safe on Ariane 4 without rigorously testing it against Ariane 5’s faster flight profile. Simulating the new rocket’s expected speeds could have exposed the limit safely. section 10.7.2
Figure 10.9 The Ariane 5 Bug: An architectural failure of physical context. A massive 64-bit vector of physical force fundamentally cannot fit into a 16-bit memory space.

Illustrates the mismatch between the velocity value and the smaller integer type. section 10.7.1

