6.2.12.15. SecureCodingΒΆ
ISO-TS-17961 C Secure Coding
Nested Rules
Accessing an object through a pointer to an incompatible type |
|
Accessing freed memory |
|
Accessing shared objects in signal handlers |
|
No assignment in conditional expressions |
|
Calling functions in the C Standard Library other than abort, _Exit, and signal from within a signal handler |
|
Calling functions with incorrect arguments |
|
Calling signal from interruptible signal handlers |
|
Passing arguments to character-handling functions that are not representable as unsigned char |
|
Comparison of padding data |
|
Converting a pointer to integer or integer to pointer |
|
Copying a FILE object |
|
Declaring the same function or object in incompatible ways |
|
Escaping of the address of an automatic object |
|
Use of an implied default in a switch statement |
|
Failing to close files or free dynamic memory when they are no longer needed |
|
Failing to detect and handle standard library errors |
|
Allocating insufficient memory |
|
Freeing memory multiple times |
|
Incorrectly setting and using errno |
|
Integer division errors |
|
Modifying string literals |
|
Overflowing signed integers |
|
Passing a non-null-terminated character sequence to a library function that expects a string |
|
Passing arguments to character-handling functions that are not representable as unsigned char |
|
Reallocating or freeing memory that was not dynamically allocated |
|
Referencing uninitialized memory |
|
Subtracting or comparing two pointers that do not refer to the same array |
|
Taking the size of a pointer to determine the size of the pointed-to type |
|
Using a tainted value to write to an object using a formatted input or output function |
|
Using character values that are indistinguishable from EOF |
|
Using identifiers that are reserved for the implementation |
|
Using invalid format strings |
Options
Setting an option for this rule means setting the default for all nested rules.
This rule shares the following common options: exclude_in_macros, exclude_messages_in_system_headers, excludes, extend_exclude_to_macro_invocations, includes, justification_checker, languages, post_processing, provider, report_at, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
This rule has no individual options.