VulnCheck.Types.DynamicCall (VulnCheck v1.0.1)

Copy Markdown View Source

A dynamic dispatch site (apply/2,3 or mod.fun(...) with a non-literal module or function) that could not be resolved statically. min_arity is the number of arguments known to be passed when the exact arity is not (apply(m, f, [env | rest]) passes at least one).

Summary

Functions

true when a function of arity may be the target of the call.

Types

t()

@type t() :: %VulnCheck.Types.DynamicCall{
  arity: non_neg_integer() | nil,
  caller: VulnCheck.Types.MFA.t(),
  file: String.t() | nil,
  kind: :module_function | :function_value,
  known_function: String.t() | nil,
  known_module: String.t() | nil,
  line: non_neg_integer() | nil,
  min_arity: non_neg_integer()
}

Functions

arity_compatible?(dynamic_call, arity)

@spec arity_compatible?(t(), non_neg_integer()) :: boolean()

true when a function of arity may be the target of the call.