You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users can specify dataflow summaries for functions that are either time consuming to analyze, or where the result might be unsound because of reflection or unsafe pointer manipulation. Currently, those summaries use integer indices to maps from arguments to other arguments and arguments to return values. Those summaries are difficult to write, and cannot express field-sensitive flows.
A dataflow summary applies to a specific method (generally, function) in a package, and optionally from an interface. If interface is specified, the summary is used for all implementations of the interface method.
The summary has flows from a function parameter to a function parameter or return. A function parameter is specified by !arg followed by a name or index, and optionally an object access path (dot-separated list of field names). A function return is specified by !ret followed by an index (the index of the element in the tuple returned, 0 if the tuple is a singleton) and optionally an object access path.
Users can refer to parameters by name or by index, whichever is preferred.
The text was updated successfully, but these errors were encountered:
Users can specify dataflow summaries for functions that are either time consuming to analyze, or where the result might be unsound because of reflection or unsafe pointer manipulation. Currently, those summaries use integer indices to maps from arguments to other arguments and arguments to return values. Those summaries are difficult to write, and cannot express field-sensitive flows.
Instead summaries could look like:
A dataflow summary applies to a specific method (generally, function) in a package, and optionally from an interface. If
interface
is specified, the summary is used for all implementations of the interface method.The summary has flows from a function parameter to a function parameter or return. A function parameter is specified by
!arg
followed by a name or index, and optionally an object access path (dot-separated list of field names). A function return is specified by!ret
followed by an index (the index of the element in the tuple returned, 0 if the tuple is a singleton) and optionally an object access path.Users can refer to parameters by name or by index, whichever is preferred.
The text was updated successfully, but these errors were encountered: