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)
Page Information
Title:
Rule 09. Input Output (FIO)
Author:
Jeffrey Gennari
Jul 27, 2006
Last Changed by:
David Svoboda
Mar 15, 2022
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/jtYxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
2 Rules
Children (13)
Page:
FIO30-C. Exclude user input from format strings
Page:
FIO32-C. Do not perform operations on devices that are only appropriate for files
Page:
FIO34-C. Distinguish between characters read from a file and EOF or WEOF
Page:
FIO37-C. Do not assume that fgets() or fgetws() returns a nonempty string when successful
Page:
FIO38-C. Do not copy a FILE object
Page:
FIO39-C. Do not alternately input and output from a stream without an intervening flush or positioning call
Page:
FIO40-C. Reset strings on fgets() or fgetws() failure
Page:
FIO41-C. Do not call getc(), putc(), getwc(), or putwc() with a stream argument that has side effects
Page:
FIO42-C. Close files when they are no longer needed
Page:
FIO44-C. Only use values for fsetpos() that are returned from fgetpos()
Show all...
Page:
FIO45-C. Avoid TOCTOU race conditions while accessing files
Page:
FIO46-C. Do not access a closed file
Page:
FIO47-C. Use valid format strings
Hide...
Labels
Global Labels (3)
fio
rule-list
section
Recent Changes
Time
Editor
Mar 15, 2022 09:44
David Svoboda
View Changes
Dec 03, 2018 15:24
Derek Leung
View Changes
Nov 16, 2017 14:40
Will Snavely
View Changes
Nov 16, 2017 14:16
Will Snavely
View Changes
Feb 26, 2017 17:29
Will Snavely
View Page History
Outgoing Links
External Links (5)
https://confluence/label/seccode/fio
https://confluence/label/seccode/rule
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
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 (1)
Home page:
SEI CERT C Coding Standard
Overview
Content Tools
{"serverDuration": 75, "requestCorrelationId": "9a4a629da511486b"}