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:
Jill Britton
Apr 20, 2023
Tiny Link:
(useful for email)
https://wiki.sei.cmu.edu/confluence/x/TtYxBQ
Export As:
Word
·
PDF
Incoming Links
Android (1)
Page:
Deprecations
CERT Secure Coding (1)
Page:
Deprecations
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
Hierarchy
Parent Page
Page:
Rec. 04. Integers (INT)
Labels
Global Labels (4)
android-applicable
unenforceable
recommendation
int
Recent Changes
Time
Editor
Apr 20, 2023 06:11
Jill Britton
View Changes
Jan 17, 2023 13:22
David Svoboda
View Changes
new NCCE/CS pair
Apr 27, 2022 08:39
Jill Britton
View Changes
Jul 06, 2021 08:38
Svyatoslav Razmyslov
View Changes
Jun 25, 2021 04:09
Svyatoslav Razmyslov
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 (2)
Page:
VOID INT02-CPP. Understand integer conversion rules
Home page:
SEI CERT C++ Coding Standard
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
Overview
Content Tools
{"serverDuration": 104, "requestCorrelationId": "8d57933be87ab9b8"}