They are both smart mathematicians, but if you trust user code and don't check for conditions that are that well known, or have set up some automatic system to catch these issues (ala GCCs automatic warning if you use gets()) then yes, you are an idiot.
If you get owned by something that isn't well known, by a bug in the CPU, by a corrupt compiler, by a cross site script attack ten years ago, fine, but not something that everybody should know is dangerous.