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)
FIO45-C. Avoid TOCTOU race conditions while accessing files
Page Information
Title:
FIO45-C. Avoid TOCTOU race conditions while accessing files
Author:
David Svoboda
Dec 03, 2013
Last Changed by:
David Svoboda
Aug 04, 2023
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/RdUxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (4)
Page:
POS35-C. Avoid race conditions while checking for the existence of a symbolic link
Page:
FIO24-C. Do not open a file that is already open
Page:
FIO08-C. Take care when calling remove() on an open file
Page:
FIO32-C. Do not perform operations on devices that are only appropriate for files
Android (1)
Page:
Unknown Applicability (C Rules/Recomendations)
Hierarchy
Parent Page
Page:
Rule 09. Input Output (FIO)
Labels
Global Labels (8)
review-dms
nptc
fio
android-unknown
rule
review-ajb
nptc-complexity
in-cpp
Recent Changes
Time
Editor
Aug 04, 2023 14:04
David Svoboda
View Changes
excess fclose() call
Mar 22, 2023 14:39
Anirban Gangopadhyay
View Changes
Jan 18, 2023 12:04
Jill Britton
View Changes
Apr 27, 2022 08:02
Jill Britton
View Changes
Apr 23, 2021 04:39
Jill Britton
View Page History
Outgoing Links
External Links (5)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.mathworks.com/help/bugfinder/ref/certcrulefio45…
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT C Coding Standard (18)
Page:
Coverity
Page:
Polyspace Bug Finder_V
Page:
BB. Definitions
Page:
FIO15-C. Ensure that file operations are performed in a secure directory
Page:
Klocwork
Page:
LDRA_V
Page:
CodeSonar
Page:
Klocwork_V
Page:
Parasoft_V
Page:
CodeSonar_V
Page:
Polyspace Bug Finder
Page:
AA. Bibliography
Page:
LDRA
Page:
Coverity_V
Page:
Parasoft
Page:
Helix QAC_V
Home page:
SEI CERT C Coding Standard
Page:
Helix QAC
Overview
Content Tools
{"serverDuration": 94, "requestCorrelationId": "c073c3aa45469c6b"}