changes.mady.by.user Pranjal Jumde
Saved on Oct 29, 2012
...
CERT C++ Secure Coding Standard
OOP35OOP08-CPP. Do not return references to private data.
MITRE CWE
CWE-375. Returning a mutable object to an untrusted caller
[API 2006]
Method clone()
clone()
[Bloch 2008]
Item 39. Make defensive copies when needed
[Goetz 2006]
3.2, Publication and Escape: Allowing Internal Mutable State to Escape
[Gong 2003]
9.4, Private Object State and Object Immutability
[Haggar 2000]
Practical Java Praxis 64. Use clone for immutable objects when passing or receiving object references to mutable objects
[Security 2006]
04. Rule 05: Object Orientation (OBJ)