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. 04. Integers (INT)
INT02-C. Understand integer conversion rules
Page Information
Title:
INT02-C. Understand integer conversion rules
Author:
Robert C. Seacord
Jun 08, 2006
Last Changed by:
David Svoboda
May 20, 2025
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/TtYxBQ
Export As:
Word
·
PDF
Incoming Links
SEI CERT C Coding Standard (4)
Page:
INT30-C. Ensure that unsigned integer operations do not wrap
Page:
EXP14-C. Beware of integer promotion when performing bitwise operations on integer types smaller than int
Page:
API09-C. Compatible values should have the same type
Page:
INT32-C. Ensure that operations on signed integers do not result in overflow
CERT Secure Coding (1)
Page:
Deprecations
Android (1)
Page:
Deprecations
Hierarchy
Parent Page
Page:
Rec. 04. Integers (INT)
Labels
Global Labels (4)
android-applicable
unenforceable
recommendation
int
Recent Changes
Time
Editor
May 20, 2025 07:15
David Svoboda
View Changes
REM Cost Reform
Dec 10, 2024 09:08
David Svoboda
View Changes
Dec 03, 2024 11:08
Jill Britton
View Changes
eliminated redundant text
Apr 20, 2023 06:11
Jill Britton
View Changes
Jan 17, 2023 13:22
David Svoboda
new NCCE/CS pair
View Page History
Outgoing Links
External Links (16)
cwe.mitre.org/data/definitions/197.html
https://www.kb.cert.org/vulnotes/bymetric?searchview&query=…
https://cryptoservices.github.io/fde/2018/11/30/undefined-b…
cwe.mitre.org/
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://wiki.sei.cmu.edu/confluence/display/c/PVS-Studio
https://pvs-studio.com/en/docs/warnings/v605/
www.kb.cert.org/vuls/id/159523
https://pvs-studio.com/en/docs/warnings/v673/
https://pvs-studio.com/en/docs/warnings/v555/
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
https://www.mathworks.com/help/bugfinder/ref/certcrec.int02…
https://pvs-studio.com/en/docs/warnings/v5006/
https://wiki.sei.cmu.edu/confluence/pages/viewpage.action?p…
BB. Definitions#implementation-defined
cwe.mitre.org/data/definitions/192.html
SEI CERT C Coding Standard (22)
Page:
ECLAIR
Page:
BB. Definitions
Page:
LDRA_V
Page:
Polyspace Bug Finder
Page:
PVS-Studio_V
Page:
PC-lint Plus_V
Page:
Helix QAC_V
Page:
CodeSonar
Page:
AA. Bibliography
Page:
CodeSonar_V
Page:
Klocwork
Page:
Astrée
Page:
Parasoft
Page:
Klocwork_V
Page:
Astrée_V
Home page:
SEI CERT C Coding Standard
Page:
LDRA
Page:
Parasoft_V
Page:
PC-lint Plus
Page:
Polyspace Bug Finder_V
Page:
ECLAIR_V
Page:
Helix QAC
SEI CERT C++ Coding Standard (2)
Page:
VOID INT02-CPP. Understand integer conversion rules
Home page:
SEI CERT C++ Coding Standard
Overview
Content Tools
{"serverDuration": 98, "requestCorrelationId": "ac189d92fa821962"}