...
This rule appears in the Java Secure Coding Standard as FLP32-J. Ensure that floating point conversions are within range of the new typeBe careful while casting floating point numbers to narrower types.
References
Wiki Markup |
---|
\[[ISO/IEC 9899:1999|AA. C References#ISO/IEC 9899-1999]\] Section 6.3.1.4, "Real floating and integer," and Section 6.3.1.5, "Real floating types" \[[ISO/IEC PDTR 24772|AA. C References#ISO/IEC PDTR 24772]\] "FLC Numeric Conversion Errors" \[[IEEE 754|AA. C References#IEEE 754 2006]\] IEEE 754-1985 Standard for Binary Floating-Point Arithmetic \[[MITRE 07|AA. C References#MITRE 07]\] [CWE ID 681|http://cwe.mitre.org/data/definitions/681.html], "Incorrect Conversion between Numeric Types" |
...