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 02. Declarations and Initialization (DCL)
DCL30-C. Declare objects with appropriate storage durations
Page Information
Title:
DCL30-C. Declare objects with appropriate storage durations
Author:
Robert Seacord
Dec 04, 2006
Last Changed by:
Caden Milne
Oct 17, 2024
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/UtcxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (7)
Page:
POS50-C. Declare objects shared between POSIX threads with appropriate storage durations
Page:
CON34-C. Declare objects shared between threads with appropriate storage durations
Page:
POS34-C. Do not call putenv() with a pointer to an automatic variable as the argument
Page:
MSC13-C. Detect and remove unused values
Page:
DCL21-C. Understand the storage of compound literals
Page:
CC. Undefined Behavior
Page:
MSC19-C. For functions that return an array, prefer returning an empty array over a null value
SEI CERT C++ Coding Standard (1)
Page:
EXP54-CPP. Do not access an object outside of its lifetime
Hierarchy
Parent Page
Page:
Rule 02. Declarations and Initialization (DCL)
Labels
Global Labels (13)
ldra
fortify
compass/rose
splint
coverity
sample
android-applicable
ptc
rose-partial
rule
dcl
klocwork
in-cpp
Recent Changes
Time
Editor
Oct 17, 2024 11:38
Caden Milne
View Changes
Updated reference from C11->C23.
Sep 19, 2024 13:06
Swasti Shrivastava
View Changes
Sep 14, 2024 04:59
Swasti Shrivastava
View Changes
Oct 09, 2023 14:20
Jill Britton
View Changes
Apr 20, 2023 05:05
Jill Britton
View Page History
Outgoing Links
External Links (23)
https://pvs-studio.com/en/docs/warnings/v738/
https://pvs-studio.com/en/docs/warnings/v507/
https://wiki.sei.cmu.edu/confluence/display/c/MSC00-C.+Comp…
https://wiki.sei.cmu.edu/confluence/display/c/PVS-Studio
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/display/c/Cppcheck
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://pvs-studio.com/en/docs/warnings/v623/
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://pvs-studio.com/en/docs/warnings/v723/
https://pvs-studio.com/en/docs/warnings/v558/
https://wiki.sei.cmu.edu/confluence/display/c/SEI+CERT+C+Co…
https://pvs-studio.com/en/docs/warnings/v506/
https://wiki.sei.cmu.edu/confluence/display/cplusplus/EXP54…
https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
https://taas.trust-in-soft.com/tsnippet/t/d86f1a03
https://wiki.sei.cmu.edu/confluence/display/c/Cppcheck+Prem…
https://wiki.sei.cmu.edu/confluence/display/c/How+this+Codi…
https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
https://www.mathworks.com/help/bugfinder/ref/certcruledcl30…
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT C Coding Standard (35)
Page:
Astrée
Page:
Helix QAC_V
Page:
TrustInSoft Analyzer_V
Page:
Axivion Bauhaus Suite_V
Page:
Klocwork
Page:
Coverity
Page:
CodeSonar_V
Page:
Parasoft
Page:
Splint_V
Page:
Axivion Bauhaus Suite
Page:
PC-lint Plus
Page:
Polyspace Bug Finder_V
Page:
LDRA
Page:
AA. Bibliography
Page:
TrustInSoft Analyzer
Page:
PC-lint Plus_V
Page:
BB. Definitions
Page:
Cppcheck Premium_V
Page:
PVS-Studio_V
Page:
LDRA_V
Page:
RuleChecker_V
Page:
Polyspace Bug Finder
Page:
CC. Undefined Behavior
Page:
CodeSonar
Page:
Rose
Page:
Coverity_V
Page:
MSC00-C. Compile cleanly at high warning levels
Page:
Cppcheck_V
Page:
Parasoft_V
Page:
Klocwork_V
Page:
Helix QAC
Page:
Splint
Home page:
SEI CERT C Coding Standard
Page:
Astrée_V
Page:
RuleChecker
Overview
Content Tools
{"serverDuration": 101, "requestCorrelationId": "2b8fdc20a127a7a1"}