I love that. It's a great lesson to programmers that we should think about the extreme cases and have set lower and upper bounds on our algorithms. Sanity checks should be in your code for most applications and inputs.
Amazon should put an upper bound on the maximum price a product can be. Can credit card companies even process a transaction in the tens of millions of dollars?