结构: Simple
Abstraction: Class
状态: Draft
被利用可能性: unkown
The software does not maintain or incorrectly maintains control over a resource throughout its lifetime of creation, use, and release.
Resources often have explicit instructions on how to be created, used and destroyed. When software does not follow these instructions, it can lead to unexpected behaviors and potentially exploitable states.
Even without explicit instructions, various principles are expected to be adhered to, such as "Do not use an object until after its creation is complete," or "do not use an object after it has been slated for destruction."
范围 | 影响 | 注释 |
---|---|---|
Other | Other |
策略:
Use Static analysis tools to check for unreleased resources.
映射的分类名 | ImNode ID | Fit | Mapped Node Name |
---|---|---|---|
CERT C Secure Coding | FIO39-C | CWE More Abstract | Do not alternately input and output from a stream without an intervening flush or positioning call |