...
Code Block | ||
---|---|---|
| ||
#define uchar unsigned char |
Compliant Solution
Use type definitions to encode all non-pointer types.
Code Block | ||
---|---|---|
| ||
typedef unsigned char uchar; |
...
Risk Assessment
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
PRE03-C | Low | Unlikely | Medium | P2 | L3 |
Automated Detection
Tool | Version | Checker | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
Axivion Bauhaus Suite |
| CertC-PRE03 | |||||||
| CC2.PRE03 | Fully implemented | |||||||
LDRA tool suite |
| 79 S | Enhanced Enforcement | ||||||
PRQA QA-C |
| 3413 | Fully implemented |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
Related Guidelines
SEI CERT C++ Coding Standard | VOID PRE03-CPP. Prefer typedefs to defines for encoding types |
ISO/IEC TR 24772:2013 | Pre-processor Directives [NMP] |
Bibliography
...
...