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
3 Recommendations
Rec. 03. Expressions (EXP)
EXP05-C. Do not cast away a const qualification
Page Information
Title:
EXP05-C. Do not cast away a const qualification
Author:
Hal Burch
Jun 16, 2006
Last Changed by:
David Svoboda
May 20, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/P9YxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (5)
Page:
CC. Undefined Behavior
Page:
EXP40-C. Do not modify constant objects
Page:
DCL13-C. Declare function parameters that are pointers to values not changed by the function as const
Page:
STR05-C. Use pointers to const when referring to string literals
Page:
DCL00-C. Const-qualify immutable objects
Hierarchy
Parent Page
Page:
Rec. 03. Expressions (EXP)
Labels
Global Labels (9)
ldra
gcc
compass/rose
android-applicable
exceptions
rose-complete
recommendation
declar-init
exp
Recent Changes
Time
Editor
May 20, 2025 07:07
David Svoboda
View Changes
REM Cost Reform
Nov 25, 2024 12:57
Caden Milne
View Changes
Updated UB references from C11->C23
Apr 20, 2023 05:56
Jill Britton
View Changes
Apr 23, 2021 12:10
Jill Britton
View Changes
Apr 21, 2021 05:12
Jill Britton
View Page History
Outgoing Links
External Links (7)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.mathworks.com/help/bugfinder/ref/certcrec.exp05…
cwe.mitre.org/data/definitions/704.html
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
cwe.mitre.org/
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
SEI CERT C Coding Standard (28)
Page:
CodeSonar
Page:
AA. Bibliography
Page:
GCC
Page:
PC-lint Plus_V
Page:
Polyspace Bug Finder_V
Page:
Helix QAC
Page:
PC-lint Plus
Page:
Axivion Bauhaus Suite
Page:
Helix QAC_V
Page:
Parasoft_V
Page:
BB. Definitions
Page:
EXP40-C. Do not modify constant objects
Page:
CodeSonar_V
Page:
RuleChecker
Page:
Axivion Bauhaus Suite_V
Page:
CC. Undefined Behavior
Page:
RuleChecker_V
Page:
ECLAIR_V
Page:
Parasoft
Page:
LDRA
Home page:
SEI CERT C Coding Standard
Page:
Astrée_V
Page:
GCC_V
Page:
Astrée
Page:
ECLAIR
Page:
Polyspace Bug Finder
Page:
Rose
Page:
LDRA_V
SEI CERT C++ Coding Standard (2)
Page:
EXP55-CPP. Do not access a cv-qualified object through a cv-unqualified type
Home page:
SEI CERT C++ Coding Standard
Overview
Content Tools
{"serverDuration": 98, "requestCorrelationId": "2b6b9c54a33564b2"}