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 07. Characters and Strings (STR)
STR30-C. Do not attempt to modify string literals
Page Information
Title:
STR30-C. Do not attempt to modify string literals
Author:
Admin
Jun 13, 2006
Last Changed by:
David Svoboda
May 06, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/VtYxBQ
Export As:
Word
·
PDF
Incoming Links
Android (1)
Page:
Applicable in Principle to Android (C Rules/Recomendations)
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:
Rule 07. Characters and Strings (STR)
Hierarchy
Parent Page
Page:
Rule 07. Characters and Strings (STR)
Labels
Global Labels (9)
ldra
compass/rose
splint
android-applicable
ptc
rose-partial
rule
str
in-cpp
Recent Changes
Time
Editor
May 06, 2025 10:43
David Svoboda
View Changes
May 05, 2025 08:49
Caden Milne
View Changes
May 05, 2025 08:47
David Svoboda
View Changes
REM Cost Reform
Mar 27, 2025 16:20
Caden Milne
View Changes
Identify undefined behavior
Nov 25, 2024 12:27
Caden Milne
Updated UB references from C11->C23
View Page History
Outgoing Links
External Links (14)
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/display/c/SEI+CERT+C+Co…
https://wiki.sei.cmu.edu/confluence/display/c/STR11-C.+Do+n…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.mathworks.com/help/bugfinder/ref/certcrulestr30…
https://wiki.sei.cmu.edu/confluence/display/c/PVS-Studio
https://wiki.sei.cmu.edu/confluence/display/c/How+this+Codi…
pubs.opengroup.org/onlinepubs/9699919799/functions/mkstemp.…
https://pvs-studio.com/en/docs/warnings/v675/
https://taas.trust-in-soft.com/tsnippet/t/952d807d
https://wiki.sei.cmu.edu/confluence/display/c/Klocwork
https://wiki.sei.cmu.edu/confluence/display/c/EXP05-C.+Do+n…
https://wiki.sei.cmu.edu/confluence/display/c/AA.+Bibliogra…
SEI CERT C Coding Standard (32)
Page:
PVS-Studio_V
Page:
Helix QAC_V
Page:
Astrée
Page:
RuleChecker_V
Page:
STR11-C. Do not specify the bound of a character array initialized with a string literal
Page:
Axivion Bauhaus Suite_V
Page:
PC-lint Plus_V
Page:
TrustInSoft Analyzer_V
Page:
CC. Undefined Behavior
Page:
EXP40-C. Do not modify constant objects
Home page:
SEI CERT C Coding Standard
Page:
Astrée_V
Page:
Helix QAC
Page:
FIO21-C. Do not create temporary files in shared directories
Page:
Splint
Page:
BB. Definitions
Page:
RuleChecker
Page:
TrustInSoft Analyzer
Page:
Axivion Bauhaus Suite
Page:
Klocwork_V
Page:
Parasoft_V
Page:
Polyspace Bug Finder_V
Page:
PC-lint Plus
Page:
Coverity_V
Page:
AA. Bibliography
Page:
LDRA
Page:
Polyspace Bug Finder
Page:
Rose
Page:
Parasoft
Page:
LDRA_V
Page:
Coverity
Page:
Splint_V
Overview
Content Tools
{"serverDuration": 85, "requestCorrelationId": "ddeb7712521ad935"}