CERT.LITERAL.OCTAL
Use of octal constant is a language extension
Vulnerability and risk
Octal format may not be supported by all compilers and usage could affect portability
Vulnerable code example
void foo() { unsigned int oct = 027; }
Last published: September 24, 2026
Use of octal constant is a language extension
Octal format may not be supported by all compilers and usage could affect portability
void foo() { unsigned int oct = 027; }