SecureCoding-5.36¶
Subtracting or comparing two pointers that do not refer to the same array
Required inputs: IR, StaticSemanticAnalysis
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
possible_unrelated_ptr_comparison |
Comparing possibly unrelated pointers |
None |
False |
possible_unrelated_ptr_subtraction |
Subtracting possibly unrelated pointers |
None |
False |
unrelated_ptr_comparison |
Comparing unrelated pointers |
None |
False |
unrelated_ptr_subtraction |
Subtracting unrelated pointers |
None |
False |
Options¶
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
check_non_array_pointers¶
check_non_array_pointers : bool = False
report_empty_points_to_sets¶
report_empty_points_to_sets : bool = False