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)
Page Information
Title:
Rule 07. Characters and Strings (STR)
Author:
Robert C. Seacord
May 24, 2006
Last Changed by:
David Svoboda
Mar 15, 2022
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/ptUxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
2 Rules
Children (6)
Page:
STR30-C. Do not attempt to modify string literals
Page:
STR31-C. Guarantee that storage for strings has sufficient space for character data and the null terminator
Page:
STR32-C. Do not pass a non-null-terminated character sequence to a library function that expects a string
Page:
STR34-C. Cast characters to unsigned char before converting to larger integer sizes
Page:
STR37-C. Arguments to character-handling functions must be representable as an unsigned char
Page:
STR38-C. Do not confuse narrow and wide character strings and functions
Labels
Global Labels (4)
sidebar
rule-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:40
Will Snavely
View Changes
Nov 16, 2017 14:16
Will Snavely
View Changes
Feb 26, 2017 17:29
Will Snavely
View Page History
Outgoing Links
External Links (2)
https://confluence/label/seccode/str
https://confluence/label/seccode/rule
SEI CERT C Coding Standard (4)
Page:
Rule 06. Arrays (ARR)
Page:
STR30-C. Do not attempt to modify string literals
Home page:
SEI CERT C Coding Standard
Page:
2 Rules
Overview
Content Tools
{"serverDuration": 92, "requestCorrelationId": "3e8961f332c8bb8a"}