...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
STL32-CPP | 1 (low) | 2 (probable) | 1 (high) | P2 | L3 |
Other Languages
This rule appears in the Java Secure Coding Standard as MET34-J. Follow the general contract when implementing the compareTo method.
References
Wiki Markup |
---|
\[[Meyers 01|AA. C++ References#Meyers 01]\] Item 21: Always have comparison functions return false for equal values. \[[Sutter 05|AA. C++ References#Sutter 05]\] Item 83: Use a checked STL implementation. \[[ISO/IEC 14882-2003|AA. C++ References#ISO/IEC 14882-2003]\] Section 24: Iterators Library. |
...