Title: NUM12-J. Ensure conversions of numeric types to narrower types do not result in lost or misinterpreted data  
Author: David Svoboda Feb 22, 2011
Last Changed by: David Svoboda Aug 06, 2025
Tiny Link: (useful for email) https://wiki.sei.cmu.edu/confluence/x/HjZGBQ
Export As: Word · PDF  
Hierarchy
Labels
Outgoing Links
External Links (14)
    https://www.safaribooksonline.com/library/view/secure-codin…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    https://wiki.sei.cmu.edu/confluence/display/java/PVS-Studio
    https://wiki.sei.cmu.edu/confluence/display/java/Rule+AA.+R…
    cwe.mitre.org/data/definitions/681.html
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    cwe.mitre.org/
    docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.…
    docs.oracle.com/javase/specs/jls/se8/html/jls-4.html#jls-4.…
    https://pvs-studio.com/en/docs/warnings/v6124/
    cwe.mitre.org/data/definitions/197.html
    java.sun.com/docs/books/jls/third_edition/html/conversions.…
    https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
    java.sun.com/docs/books/jls/third_edition/html/conversions.…
SEI CERT Oracle Coding Standard for Java (9)     Page: Parasoft_V
    Page: CodeSonar
    Home page: SEI CERT Oracle Coding Standard for Java
    Page: PVS-Studio_V
    Page: Rule AA. References
    Page: NUM53-J. Use the strictfp modifier for floating-point calculation consistency across platforms
    Page: CodeSonar_V
    Page: NUM00-J. Detect or prevent integer overflow
    Page: Parasoft
SEI CERT C Coding Standard (3)     Page: INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data
    Page: FLP34-C. Ensure that floating-point conversions are within range of the new type
    Home page: SEI CERT C Coding Standard