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 03. Expressions (EXP)
Page Information
Title:
Rule 03. Expressions (EXP)
Author:
Robert C. Seacord
Jun 17, 2006
Last Changed by:
David Svoboda
Mar 15, 2022
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/SNYxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
2 Rules
Children (15)
Page:
EXP30-C. Do not depend on the order of evaluation for side effects
Page:
EXP32-C. Do not access a volatile object through a nonvolatile reference
Page:
EXP33-C. Do not read uninitialized memory
Page:
EXP34-C. Do not dereference null pointers
Page:
EXP35-C. Do not modify objects with temporary lifetime
Page:
EXP36-C. Do not cast pointers into more strictly aligned pointer types
Page:
EXP37-C. Call functions with the correct number and type of arguments
Page:
EXP39-C. Do not access a variable through a pointer of an incompatible type
Page:
EXP40-C. Do not modify constant objects
Page:
EXP42-C. Do not compare padding data
Show all...
Page:
EXP43-C. Avoid undefined behavior when using restrict-qualified pointers
Page:
EXP44-C. Do not rely on side effects in operands to sizeof, _Alignof, or _Generic
Page:
EXP45-C. Do not perform assignments in selection statements
Page:
EXP46-C. Do not use a bitwise operator with a Boolean-like operand
Page:
EXP47-C. Do not call va_arg with an argument of the incorrect type
Hide...
Labels
Global Labels (3)
rule-list
exp
section
Recent Changes
Time
Editor
Mar 15, 2022 09:43
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://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…
https://confluence/label/seccode/exp
https://confluence/label/seccode/rule
SEI CERT C Coding Standard (1)
Home page:
SEI CERT C Coding Standard
Overview
Content Tools
{"serverDuration": 84, "requestCorrelationId": "2bf181583eec98a3"}