Module Checkers.SiofTrace
include Absint.SinkTrace.S with type Sink.Kind.t = IR.Pvar.t
include Absint.TaintTrace.S
include Absint.TaintTrace.Spec
module Source : Absint.Source.Smodule Sink : Absint.Sink.Smodule Sanitizer : Absint.Sanitizer.Sval get_report : Source.t -> Sink.t -> Sanitizer.t list -> IBase.IssueType.t optionreturn Some(issue) a trace from source to sink passing through the given sanitizers should be reported, None otherwise
bottom = this trace has no source or sink data
include Absint.AbstractDomain.WithBottom
include Absint.AbstractDomain.S
include Absint.AbstractDomain.NoJoin
include IStdlib.PrettyPrintable.PrintableType
val pp : IStdlib.PrettyPrintable.F.formatter -> t -> unit
val bottom : tThe bottom value of the domain.
val is_bottom : t -> boolReturn true if this is the bottom value
module Sources : sig ... endmodule Sinks = Sink.Setmodule Passthroughs = Absint.Passthrough.Settype path= Passthroughs.t * (Source.t * Passthroughs.t) list * (Sink.t * Passthroughs.t) listpath from a source to a sink with passthroughs at each step in the call stack. the first set of passthroughs are the ones in the "reporting" procedure that calls the first function in both the source and sink stack
type report={issue : IBase.IssueType.t;path_source : Source.t;path_sink : Sink.t;path_passthroughs : Passthroughs.t;}
val passthroughs : t -> Passthroughs.tget the passthroughs of the trace
val get_reports : ?cur_site:Absint.CallSite.t -> t -> report listget the reportable source-sink flows in this trace. specifying
cur_siterestricts the reported paths to ones introduced by the call atcur_site
val get_reportable_paths : ?cur_site:Absint.CallSite.t -> t -> trace_of_pname:(IR.Procname.t -> t) -> path listget a path for each of the reportable source -> sink flows in this trace. specifying
cur_siterestricts the reported paths to ones introduced by the call atcur_site
val to_loc_trace : ?desc_of_source:(Source.t -> string) -> ?source_should_nest:(Source.t -> bool) -> ?desc_of_sink:(Sink.t -> string) -> ?sink_should_nest:(Sink.t -> bool) -> path -> Absint.Errlog.loc_tracecreate a loc_trace from a path;
source_should_nest sshould be true when we are going one deeper into a call-chain, ie when lt_level should be bumper in the next loc_trace_elem, and similarly forsink_should_nest
val of_footprint : Absint.AccessPath.Abs.t -> tcreate a trace from a footprint access path
val add_sanitizer : Sanitizer.t -> t -> tadd a sanitizer to the current trace
val update_sources : t -> Sources.t -> tval update_sinks : t -> Sinks.t -> treplace sinks with new ones
val get_footprint_indexes : t -> IStdlib.IntSet.tget the footprint indexes for all of the sources in the trace
val append : t -> t -> Absint.CallSite.t -> tappend the trace for given call site to the current caller trace
val pp : Absint.TaintTrace.F.formatter -> t -> unitval pp_path : IR.Procname.t -> Absint.TaintTrace.F.formatter -> path -> unitpretty-print a path in the context of the given procname
type sink_path= Absint.Passthrough.Set.t * (Sink.t * Absint.Passthrough.Set.t) listA path from some procedure via the given passthroughs to the given call stack, with passthroughs for each callee
val get_reportable_sink_paths : t -> trace_of_pname:(IR.Procname.t -> t) -> sink_path listget a path for each of the reportable flows to a sink in this trace
val get_reportable_sink_path : Sink.t -> trace_of_pname:(IR.Procname.t -> t) -> sink_path optionget a report for a single sink
val with_callsite : t -> Absint.CallSite.t -> tupdate sink with the given call site
module GlobalVar : IStdlib.PrettyPrintable.PrintableOrderedType with type PrintableOrderedType.t = IR.Pvar.tmodule GlobalVarSet : IStdlib.PrettyPrintable.PPSet with type PPSet.elt = IR.Pvar.tval make_access : IR.Pvar.t -> IBase.Location.t -> Sink.tval trace_of_error : IBase.Location.t -> string -> sink_path -> Absint.Errlog.loc_trace_elem list