SecureCoding-5.28

Modifying string literals

Required inputs: IR

Rule description is currently unavailable for legal reasons.

Possible Messages

Key

Text

Severity

Disabled

call_with_const

Result of call to {}() with ‘{}’ input should be used as ‘const {}*’.

None

False

call_with_literal

Result of call to {}() with string literal should be used as ‘const {}*’.

None

False

nonconst_string_literal

String literal should only be used as ‘const char*’

None

False

Options

funcs

funcs

Type: set[bauhaus.analysis.config.QualifiedName]

Default: {'memchr', 'strchr', 'strpbrk', 'strrchr', 'strstr', 'wcschr', 'wcspbrk', 'wcsrchr', 'wcsstr', 'wmemchr'}

Functions to check.