CUDASecurity-EXP01¶
Do not call va_arg with an argument of the incorrect type
Required inputs: IR
Based on: CertC-EXP47
With excerpts from SEI CERT, Copyright (C) 1995-2021 Carnegie Mellon University. See 9.4 3rd-Party Licenses in the documentation for full details.Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
va_arg_missing |
Call requires at least one argument for variadic parameter. |
None |
False |
va_arg_with_unpromoted_type |
Type {} does not match promoted type {}. |
None |
False |
wrong_argument_type_multiple_allowed |
Variable argument was passed type ‘{}’, which is not among the expected types. |
None |
False |
wrong_argument_type_va |
Variable arguments expect type ‘{}’, but ‘{}’ was given. |
None |
False |
Options
This rule shares the following common options: confidence, 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.