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 04. Integers (INT)
Page Information
Title:
Rule 04. Integers (INT)
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/tNUxBQ
Export As:
Word
·
PDF
Hierarchy
Parent Page
Page:
2 Rules
Children (7)
Page:
INT30-C. Ensure that unsigned integer operations do not wrap
Page:
INT31-C. Ensure that integer conversions do not result in lost or misinterpreted data
Page:
INT32-C. Ensure that operations on signed integers do not result in overflow
Page:
INT33-C. Ensure that division and remainder operations do not result in divide-by-zero errors
Page:
INT34-C. Do not shift an expression by a negative number of bits or by greater than or equal to the number of bits that exist in the operand
Page:
INT35-C. Use correct integer precisions
Page:
INT36-C. Converting a pointer to integer or integer to pointer
Labels
Global Labels (4)
rule-list
conversion
int
section
Recent Changes
Time
Editor
Mar 15, 2022 09:43
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 (5)
https://confluence/label/seccode/rule
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://confluence/label/seccode/int
SEI CERT C Coding Standard (1)
Home page:
SEI CERT C Coding Standard
Overview
Content Tools
{"serverDuration": 77, "requestCorrelationId": "b722d8f8a26f7ecd"}