VulnCheck.Types.CallEdge (VulnCheck v1.0.1)

Copy Markdown View Source

A directed edge of the call graph.

file and line describe the call site inside the caller. kind tells how the edge was discovered:

  • :static_call — a direct local/remote call or function capture
  • :macro_expanded — a call generated by macro expansion
  • :behaviour_callback — a callback wired by an OTP or framework behaviour
  • :supervisor_child — a module started or referenced as a child/plug
  • :dynamic_apply — an apply/3 site resolved to a concrete target
  • :dynamic_candidate — a possible target of an unresolved invocation
  • :imports — an over-approximated edge derived from the :imports table of a .beam without debug info

Summary

Functions

Whether the edge can support a confirmed call chain.

Types

kind()

@type kind() ::
  :static_call
  | :macro_expanded
  | :behaviour_callback
  | :supervisor_child
  | :dynamic_apply
  | :dynamic_candidate
  | :imports

t()

@type t() :: %VulnCheck.Types.CallEdge{
  file: String.t() | nil,
  from: VulnCheck.Types.MFA.t(),
  kind: kind(),
  line: non_neg_integer() | nil,
  to: VulnCheck.Types.MFA.t()
}

Functions

proven?(call_edge)

@spec proven?(t()) :: boolean()

Whether the edge can support a confirmed call chain.