SecureCoding-5.25¶
Incorrectly setting and using errno
Required inputs: IR
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
misplaced_errno_check |
errno should only be tested after a call to an errno-setting function. |
None |
False |
missing_errno_check |
errno should be tested against zero after this call to an errno-setting function. |
None |
False |
missing_error_handling |
The program should not check the value of errno without first verifying that the function returned an error indicator. |
None |
False |
uncleared_errno |
errno should be set to zero before calling an errno-setting function. |
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
errno_clearers¶
errno_clearers : set[bauhaus.analysis.config.QualifiedName] = set()
errno to 0.
errno_readers¶
errno_readers : set[bauhaus.analysis.config.QualifiedName] = set()
errno.
not_setting_errno¶
not_setting_errno : set[bauhaus.analysis.config.QualifiedName] = set()
skip_out_of_band¶
skip_out_of_band : bool = False
standard_posix¶
standard_posix : bool = False
with_following_errno_read¶
with_following_errno_read : bool = False