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. 07. Characters and Strings (STR)
Page Information
Title:
Rec. 07. Characters and Strings (STR)
Author:
Barbara White
Mar 05, 2015
Last Changed by:
David Svoboda
Aug 06, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/ZtUxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
3 Recommendations
Children (10)
Page:
STR00-C. Represent characters using an appropriate type
Page:
STR01-C. Adopt and implement a consistent plan for managing strings
Page:
STR02-C. Sanitize data passed to complex subsystems
Page:
STR03-C. Do not inadvertently truncate a string
Page:
STR04-C. Use plain char for characters in the basic character set
Page:
STR05-C. Use pointers to const when referring to string literals
Page:
STR06-C. Do not assume that strtok() leaves the parse string unchanged
Page:
STR09-C. Don't assume numeric values for expressions with type plain character
Page:
STR10-C. Do not concatenate different type of string literals
Page:
STR11-C. Do not specify the bound of a character array initialized with a string literal
Labels
Global Labels (4)
sidebar
recommendation-list
str
section
Recent Changes
Time
Editor
Aug 06, 2025 17:49
David Svoboda
View Changes
Jul 14, 2025 10:34
David Svoboda
View Changes
removed STR07-C
May 20, 2025 10:04
David Svoboda
View Changes
May 20, 2025 09:47
David Svoboda
View Changes
May 20, 2025 09:39
David Svoboda
REM Cost Reform
View Page History
Outgoing Links
External Links (5)
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://confluence/label/seccode/str
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://confluence/label/seccode/recommendation
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": 66, "requestCorrelationId": "2b18fddd5ea46222"}