Miscellaneous-ForbiddenFunctions

Do not call certain functions from certain header files

Required inputs: IR

This rule prevents the use of a configurable set of functions.

Possible Messages

Key

Text

Severity

Disabled

forbidden_libfunc_call

Call to forbidden function.

None

False

Options

blacklist

blacklist

Type: dict[bauhaus.analysis.config.FileGlobPattern, list[bauhaus.analysis.config.GlobPattern]]

Default:

{
   'setjmp.h': ['setjmp', 'longjmp'],
   'signal.h': ['signal', 'raise'],
   'stdlib.h': ['ato*', 'abort', 'exit', 'getenv', 'system'],
   'string.h': ['str[!n]*'],
   'time.*': ['*']
}
Dictionary of header globbing to (list of) function name globbing(s) of forbidden functions.