Counter overflows and clock drift bugs in aircraft and missile defense systems

from blog Dodgy Coder, | ↗ original
A counter overflow bug happens when an unsigned integer variable storing a counter reaches its maximum value; when its already at the maximum, as soon as one more value gets added to it, the variable will reset back to 0 and continue counting up from there. If the rest of the software is not expecting this counter reset, it can result in system...