...
Wiki Markup |
---|
Sometimes a state testing method \[[Bloch 082008|AA. Java References#Bloch 08]\] can be used to ensure that the object is in consistent state at all points in time. This approach is not useful in the absence of external synchronization. Also, there is a TOCTOU race condition between invocation of the object's state testing method and the call to a method that depends on the object's state. During this interval, the object's state could change surreptitiously. |
...
References
Wiki Markup |
---|
\[[Ware 082008|AA. Java References#Ware 08]\] \[[MITRE 092009|AA. Java References#MITRE 09]\] [CWE ID 393|http://cwe.mitre.org/data/definitions/393.html] "Return of Wrong Status Code" and [CWE ID 389|http://cwe.mitre.org/data/definitions/393.html] "Error Conditions, Return Values, Status Codes" |
...