Blog Post
Security vulnerabilities are no joke!
I remember hearing about how someone was able to withdraw infinite money from a bank's ATM by inputting a negative number, (which has since long been patched out across banks worldwide).
Basically, (from what I understand), the code behind withdrawing money went something like: "(balance) minus [withdrawal amount]", and when you used a negative number, it looked like: "(balance) minus minus [withdrawal amount]", (which two negatives had made a positive), and was what had caused the issue, (and if wasn't the cause, then the issue was caused by the minus symbol being read as "infinite", as in coding, "-1" is often used for "infinite").
What should happen now, is that the ATM should see the negative number as invalid, (thus preventing the exploit).
The "infinite" issue has more of a history than one might think, as in one of the Sid Meier's Civilization games, Gandhi "went nuclear", (as we know, Gandhi was one of the most peaceful people to ever live), so how could this had happen?
Well... the devs had set Gandhi's "power level" to "-1", which they had meant it as a "he has no power since he's peaceful", however the game had saw the "-1" as "he has ALL the power". (Which, the only way to fix the issue, was for the devs to set his "power level" to "0" instead of "-1").