SecureCoding-5.5¶
Calling functions in the C Standard Library other than abort, _Exit, and signal from within a signal handler
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
invalid_system_call |
Signal handler should call only async-safe functions. |
None |
False |
unknown_call |
Signal handler calling unknown function, potentially not async-safe. |
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
allow_posix_async_safe¶
allow_posix_async_safe : int = 0
report_unknown_calls¶
report_unknown_calls : bool = True
signal_handler_registrations¶
signal_handler_registrations : set[bauhaus.analysis.config.FunctionName] = {'sigaction', 'signal'}
whitelist¶
whitelist : set[bauhaus.analysis.config.FunctionName] = {'_Exit', 'abort', 'quick_exit', 'signal'}