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
Mar 15, 2022
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/ZtUxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
3 Recommendations
Children (12)
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:
STR07-C. Use the bounds-checking interfaces for string manipulation
Page:
STR08-C. Use managed strings for development of new string manipulation code
Page:
STR09-C. Don't assume numeric values for expressions with type plain character
Show all...
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
Hide...
Labels
Global Labels (4)
sidebar
recommendation-list
str
section
Recent Changes
Time
Editor
Mar 15, 2022 09:44
David Svoboda
View Changes
Dec 03, 2018 15:24
Derek Leung
View Changes
Nov 16, 2017 14:41
Will Snavely
View Changes
Nov 16, 2017 14:16
Will Snavely
View Changes
Feb 26, 2017 17:30
Will Snavely
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": 76, "requestCorrelationId": "71d4be5574049b93"}