[2]
CERT-MSC24_C (REC) Do not use deprecated or obsolescent functions (CERT_C-MSC24)
|
[2]
The 'getenv()' function from the 'stdlib.h' or 'cstdlib' library shall not be used (CERT_C-MSC24-b-3)
|
[30]
CERT-MEM04_C (REC) Beware of zero-length allocations (CERT_C-MEM04)
|
[30]
The validity of values passed to library functions shall be checked (CERT_C-MEM04-a-2)
|
[5]
CERT-PRE31_C (RULE) Avoid side effects in arguments to unsafe macros (CERT_C-PRE31)
|
[5]
Assertions should not contain function calls nor function-like macro calls (CERT_C-PRE31-c-3)
|
[2]
CERT-ENV02_C (REC) Beware of multiple environment variables with the same effective name (CERT_C-ENV02)
|
[2]
Usage of system properties (environment variables) should be restricted (CERT_C-ENV02-a-3)
|
[2]
CERT-STR34_C (RULE) Cast characters to unsigned char before converting to larger integer sizes (CERT_C-STR34)
|
[2]
Cast characters to unsigned char before assignment to larger integer sizes (CERT_C-STR34-b-2)
|
[30]
CERT-MEM07_C (REC) Ensure that the arguments to calloc(), when multiplied, do not wrap (CERT_C-MEM07)
|
[30]
The validity of values passed to library functions shall be checked (CERT_C-MEM07-a-2)
|
[88]
CERT-MSC41_C (RULE) Never hard code sensitive information (CERT_C-MSC41)
|
[88]
Do not hard code string literals (CERT_C-MSC41-a-1)
|
[22]
CERT-API00_C (REC) Functions should validate their parameters (CERT_C-API00)
|
[22]
The validity of parameters must be checked inside each function (CERT_C-API00-a-3)
|
[2]
CERT-CON33_C (RULE) Avoid race conditions when using library functions (CERT_C-CON33)
|
[2]
Avoid using thread-unsafe functions (CERT_C-CON33-a-3)
|
[13]
CERT-DCL19_C (REC) Minimize the scope of variables and functions (CERT_C-DCL19)
|
[13]
Declare variables as locally as possible (CERT_C-DCL19-a-3)
|
[15]
CERT-EXP12_C (REC) Do not ignore values returned by functions (CERT_C-EXP12)
|
[15]
The value returned by a function having non-void return type shall be used (CERT_C-EXP12-a-3)
|
[4]
CERT-EXP19_C (REC) Use braces for the body of an if, for, or while statement (CERT_C-EXP19)
|
[4]
The statement forming the body of a 'switch', 'while', 'do...while' or 'for' statement shall be a compound statement (CERT_C-EXP19-a-2)
|
[15]
CERT-POS54_C (RULE) Detect and handle POSIX library errors (CERT_C-POS54)
|
[15]
The value returned by a function having non-void return type shall be used (CERT_C-POS54-a-1)
|
[15]
CERT-ERR33_C (RULE) Detect and handle standard library errors (CERT_C-ERR33)
|
[15]
The value returned by a function having non-void return type shall be used (CERT_C-ERR33-a-1)
|
[4]
CERT-ERR06_C (REC) Understand the termination behavior of assert() and abort() (CERT_C-ERR06)
|
[4]
Do not use assertions (CERT_C-ERR06-a-3)
|
[10]
CERT-ERR07_C (REC) Prefer functions that support error checking over equivalent functions that don't (CERT_C-ERR07)
|
[10]
The Standard Library input/output functions shall not be used (CERT_C-ERR07-b-2)
|
[33]
CERT-DCL00_C (REC) Const-qualify immutable objects (CERT_C-DCL00)
|
[33]
Declare parameters or local variable as const whenever possible (CERT_C-DCL00-a-3)
|
[10]
CERT-ERR02_C (REC) Avoid in-band error indicators (CERT_C-ERR02)
|
[10]
The Standard Library input/output functions shall not be used (CERT_C-ERR02-a-3)
|
[2]
CERT-POS34_C (RULE) Do not call putenv() with a pointer to an automatic variable as the argument (CERT_C-POS34)
|
[2]
Usage of system properties (environment variables) should be restricted (CERT_C-POS34-a-2)
|
[53]
CERT-ERR59_CPP (RULE) Do not throw an exception across execution boundaries (CERT_CPP-ERR59)
|
[53]
Do not throw an exception across execution boundaries (CERT_CPP-ERR59-a-1)
|
[10]
CERT-DCL51_CPP (RULE) Do not declare or define a reserved identifier (CERT_CPP-DCL51)
|
[10]
The names of standard library macros, objects and functions shall not be reused (CERT_CPP-DCL51-d-3)
|
[3]
CERT-EXP60_CPP (RULE) Do not pass a nonstandard-layout type object across execution boundaries (CERT_CPP-EXP60)
|
[3]
Do not pass a nonstandard-layout type object across execution boundaries (CERT_CPP-EXP60-a-1)
|
[1]
Coding Conventions for C++ (CODSTA-CPP)
|
[1]
Constructors allowing for conversion should be made explicit (CODSTA-CPP-04-1)
|
[6]
Metric (METRIC)
|
[2]
McCabe Cyclomatic Complexity (METRIC.CC-3)
|
[4]
Nested Blocks Depth (METRIC.NBD-3)
|
[5]
Optimization (OPT)
|
[5]
Pass objects by reference instead of by value (OPT-14-3)
|