Skip to main content
assistive.skiplink.to.breadcrumbs
assistive.skiplink.to.header.menu
assistive.skiplink.to.action.menu
assistive.skiplink.to.quick.search
Log in
Confluence
Spaces
Hit enter to search
Help
Online Help
Keyboard Shortcuts
Feed Builder
What’s new
Available Gadgets
About Confluence
Log in
SEI CERT C Coding Standard
Pages
Boards
Space shortcuts
Dashboard
Secure Coding Home
Android
C
C++
Java
Perl
Page tree
Browse pages
Configure
Space tools
View Page
A
t
tachments (0)
Page History
Page Information
View in Hierarchy
View Source
Export to PDF
Export to Word
Pages
…
SEI CERT C Coding Standard
2 Rules
Rule 09. Input Output (FIO)
FIO42-C. Close files when they are no longer needed
Page Information
Title:
FIO42-C. Close files when they are no longer needed
Author:
Robert Seacord
Dec 04, 2013
Last Changed by:
Francesco Mariani
Aug 06, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/QtUxBQ
Export As:
Word
·
PDF
Incoming Links
Android (1)
Page:
Unknown Applicability (C Rules/Recomendations)
SEI CERT C++ Coding Standard (1)
Page:
FIO51-CPP. Close files when they are no longer needed
Hierarchy
Parent Page
Page:
Rule 09. Input Output (FIO)
Labels
Global Labels (6)
nptc
fio
android-unknown
rule
nptc-intent
in-cpp
Recent Changes
Time
Editor
Aug 06, 2025 14:17
Francesco Mariani
View Changes
May 05, 2025 09:07
Swasti Shrivastava
View Changes
REM Cost Reform
Dec 12, 2024 01:24
Swasti Shrivastava
View Changes
Dec 06, 2024 06:54
Swasti Shrivastava
View Changes
Dec 05, 2024 12:19
David Svoboda
View Page History
Outgoing Links
External Links (25)
https://wiki.sei.cmu.edu/confluence/display/java/SEI+CERT+O…
https://www.mathworks.com/help/bugfinder/ref/certcrulefio42…
https://cwe.mitre.org/data/index.html
msdn.microsoft.com/en-us/library/windows/desktop/ms724211(v…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/display/c/Polyspace+Bug…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/display/c/How+this+Codi…
https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://wiki.sei.cmu.edu/confluence/display/c/Cppcheck
https://wiki.sei.cmu.edu/confluence/display/cplusplus/FIO51…
https://cwe.mitre.org/data/index.html773.html
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
msdn.microsoft.com/en-us/library/windows/desktop/aa363858(v…
https://www.sonarsource.com/products/codeanalyzers/sonarcfa…
cwe.mitre.org/data/definitions/404.html
https://cwe.mitre.org/data/index.html459.html
https://cwe.mitre.org/data/definitions/403.html
https://cwe.mitre.org/data/index.html772.html
https://cwe.mitre.org/data/index.html775.html
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
cwe.mitre.org/
https://wiki.sei.cmu.edu/confluence/display/java/FIO04-J.+R…
SEI CERT C Coding Standard (26)
Page:
Security Reviewer - Static Reviewer_V
Page:
Astrée
Page:
Helix QAC_V
Page:
Cppcheck Premium_V
Page:
Helix QAC
Page:
CodeSonar_V
Page:
Parasoft
Page:
AA. Bibliography
Page:
LDRA
Page:
Klocwork
Page:
Cppcheck_V
Page:
Klocwork_V
Page:
Astrée_V
Home page:
SEI CERT C Coding Standard
Page:
Parasoft_V
Page:
Security Reviewer - Static Reviewer
Page:
CodeSonar
Page:
PC-lint Plus_V
Page:
Coverity_V
Page:
Rose
Page:
LDRA_V
Page:
Coverity
Page:
Polyspace Bug Finder_V
Page:
PC-lint Plus
Page:
Cppcheck Premium
Page:
BB. Definitions
Overview
Content Tools
{"serverDuration": 88, "requestCorrelationId": "3f5573c23818654b"}