How to crash an in-flight entertainment system

In this case, the value wasn’t 4 but 5 so it happily incremented it to 6! I then continue to increment the value by pressing the button until I get to 127 and then I pause for a moment of reflection. 127 is a very special number; it is the upper bound of a 1 byte signed integer. Strange things can happen when we add 1 to this value, namely that 127 1 = -128! I considered this for a moment as I kicked back a small bag of peanuts and in the interest of science I boldly pressed the button once more. Suddenly, the display now flashes -128 just for an instant and then poof…screen goes black.


Leave a Reply

Your email address will not be published. Required fields are marked *