Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: literal 0x100000000 is interpreted as int. we need suffix "L" for long (-:

...

The CERT C Secure Coding Standard

INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data

 

FLP34-C. Ensure that floating point conversions are within range of the new type

The CERT C++ Secure Coding Standard

INT31-CPP. Ensure that integer conversions do not result in lost or misinterpreted data

 

FLP34-CPP. Ensure that floating point conversions are within range of the new type

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="5c2f60cb4ccb4ead-392c75fe-40c44ac5-a5ecabef-750f4caf77e1fb4d9eeb61fc"><ac:plain-text-body><![CDATA[

[ISO/IEC TR 24772:2010

http://www.aitcnet.org/isai/]

Numeric Conversion Errors [FLC]

]]></ac:plain-text-body></ac:structured-macro>

MITRE CWE

CWE-681. Incorrect conversion between numeric types

 

CWE-197. Numeric truncation error

...