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:
Jill Britton
Apr 20, 2023
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
Apr 20, 2023 05:26
Jill Britton
View Changes
Jan 18, 2023 12:00
Jill Britton
View Changes
Apr 27, 2022 08:01
Jill Britton
View Changes
Dec 15, 2021 08:43
David Svoboda
View Changes
Apr 23, 2021 04:37
Jill Britton
View Page History
Outgoing Links
External Links (24)
https://wiki.sei.cmu.edu/confluence/display/java/SEI+CERT+O…
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.mathworks.com/help/bugfinder/ref/certcrulefio42…
https://cwe.mitre.org/data/index.html
https://www.sonarsource.com/products/codeanalyzers/sonarcfa…
cwe.mitre.org/data/definitions/404.html
https://cwe.mitre.org/data/index.html459.html
msdn.microsoft.com/en-us/library/windows/desktop/ms724211(v…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://cwe.mitre.org/data/definitions/403.html
https://wiki.sei.cmu.edu/confluence/display/c/Polyspace+Bug…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://cwe.mitre.org/data/index.html772.html
https://wiki.sei.cmu.edu/confluence/display/c/How+this+Codi…
https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
https://cwe.mitre.org/data/index.html775.html
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://wiki.sei.cmu.edu/confluence/display/java/FIO04-J.+R…
cwe.mitre.org/
https://wiki.sei.cmu.edu/confluence/display/cplusplus/FIO51…
https://cwe.mitre.org/data/index.html773.html
SEI CERT C Coding Standard (21)
Page:
Astrée
Page:
Helix QAC_V
Page:
Helix QAC
Page:
CodeSonar_V
Page:
CodeSonar
Page:
PC-lint Plus_V
Page:
Coverity_V
Page:
Parasoft
Page:
AA. Bibliography
Page:
LDRA
Page:
Rose
Page:
Klocwork
Page:
LDRA_V
Page:
Klocwork_V
Page:
Coverity
Page:
Astrée_V
Page:
Polyspace Bug Finder_V
Page:
PC-lint Plus
Home page:
SEI CERT C Coding Standard
Page:
BB. Definitions
Page:
Parasoft_V
Overview
Content Tools
{"serverDuration": 73, "requestCorrelationId": "45b9b773b40867be"}