Here is how to do integer overflow checks from the same author as the OP in the bug report:<p><a href="https:&#x2F;&#x2F;www.fefe.de&#x2F;intof.html" rel="nofollow">https:&#x2F;&#x2F;www.fefe.de&#x2F;intof.html</a>