SecureCoding-5.2¶
Accessing freed memory
Required inputs: IR, StaticSemanticAnalysis
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
double_free |
Dynamic memory released here was already released earlier |
None |
False |
possible_double_free |
Dynamic memory released here possibly already released earlier |
None |
False |
possible_use_after_free |
Dynamic memory possibly used after it was previously released |
None |
False |
use_after_free |
Dynamic memory used after it was previously released |
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
functions_with_ignored_deallocators¶
functions_with_ignored_deallocators : set[str] = set()
report_freed_this_at_call¶
report_freed_this_at_call : bool = False
report_read_pointer_args_in_calls_to_undefined¶
report_read_pointer_args_in_calls_to_undefined : bool = True
resources¶
resources : set[str] = {'HeapMemory'}
witness_paths¶
witness_paths : bool = True