Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This rule appears in the C++ Secure Coding Standard as FIO42-CPP. Ensure files are properly closed when they are no longer needed.

Bibliography

Related Guidelines

<ac:structured-macro ac:name="unmigrated-wiki-markup

...

" ac:schema-version="1" ac:macro-id="8bcabdd4-b6f0-475d-bbea-ac9bd540b385"><ac:plain-text-body><![CDATA[

[[MITRE 2009

AA. Bibliography#MITRE 09]]

[CWE-405

http://cwe.mitre.org/data/definitions/405.html]

...

"Asymmetric

...

Resource

...

Consumption

...

(Amplification)"

...

]]></ac:plain-text-body></ac:structured-macro>

 

CWE-404 "Improper Resource Shutdown or Release"

 

CWE-459 "Incomplete Cleanup"

 

CWE-770 "Allocation of Resources Without Limits or Throttling"

Bibliography

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a9ad1c5e-5196-4e7d-9acc-c15943e46ae3"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API 06]]

[Class Object

http://java.sun.com/javase/6/docs/api/java/lang/Object.html]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="b929452d-441e-4dda-a22d-088b4ce09b91"><ac:plain-text-body><![CDATA[

[[Goetz 2006b

AA. Bibliography#Goetz 06b]]

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4e12119c-d4bc-4c8e-8ac7-e58afcbbe452"><ac:plain-text-body><![CDATA[

[[J2SE 2011

AA. Bibliography#J2SE 11]]

The try-with-resources Statement

]]></ac:plain-text-body></ac:structured-macro>

...

FIO05-J. Do not create multiple buffered wrappers on a single InputStream      12. Input Output (FIO)      FIO07-J. Do not create temporary files in shared directories