Integer overflow: Difference between revisions

Content deleted Content added
Line 46:
 
==Techniques for mitigating integer overflow problems==
Programming languages implement various mitigation techniques against an accidental overflow: [[Ada (programming language)|Ada]], [[Seed7]] (and certain variants of functional languages), trigger an exception condition on overflow, while [[Python (programming language)|Python]] (since 2.4) seamlessly converts internal representation of the number to match its growth, eventually representing it as <code>long</code> whose capability is only limited by the available memory.<ref>[https://wwwdocs.python.org/doc2/1.4/refreference/ref5expressions.html Python documentation], section 5.1 Arithmetic conversions.</ref>
 
Run-time overflow detection implementation <code>AddressSanitizer</code> is also available for [[C compiler]]s.
 
 
{{main|AddressSanitizer}}
 
 
List of techniques and methods that might be used to mitigate the consequences of integer overflow: