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