⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content
Discussion options

You must be logged in to vote

It sounds like what you want is not having flow out of a method containing a source to an arbitrary call site. In that case, you can use a FlowFeature to tell the dataflow configuration that you don't want it to assume arbitrary call contexts when reaching a return statement from a source.

Try adding this to your configuration:

  override DataFlow::FlowFeature getAFeature() {
    result instanceof DataFlow::FeatureHasSourceCallContext
  }

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@spidermana
Comment options

@smowton
Comment options

@spidermana
Comment options

Comment options

You must be logged in to vote
2 replies
@smowton
Comment options

@spidermana
Comment options

Answer selected by spidermana
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants