SEI CERT Oracle Secure Coding Standard for Java - Guidelines 02. Expressions (EXP)
A category in the Common Weakness Enumeration published by The MITRE Corporation.
Summary
Categories in the Common Weakness Enumeration (CWE) group entries based on some common characteristic or attribute.
Weaknesses in this category are related to the rules and recommendations in the Expressions (EXP) section of the SEI CERT Oracle Secure Coding Standard for Java.
Weaknesses
The product compares object references instead of the contents of the objects themselves, preventing it from detecting equivalent objects.
A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.
The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.
The product uses the wrong operator when comparing a string, such as using "==" when the .equals() method should be used instead.
Concepts
CWE entries in this view (graph) are fully or partially eliminated by following the guidance presented in the online wiki that reflects that current rules and recommen...
See Also
- SEI CERT Oracle Coding Standard for Java : Rule 02. Expressions (EXP)
The Software Engineering Institute
- SEI CERT Oracle Coding Standard for Java : Rec 02. Expressions (EXP)
The Software Engineering Institute
Common Weakness Enumeration content on this website is copyright of The MITRE Corporation unless otherwise specified. Use of the Common Weakness Enumeration and the associated references on this website are subject to the Terms of Use as specified by The MITRE Corporation.