Skip to content

[Java] taint query find weird step when calling super #16973

Answered by aschackmull
hugo-syn asked this question in Q&A
Discussion options

You must be logged in to vote

That depends on what you're actually trying to achieve. What you currently have is a source definition that looks somewhat weird to me - starting from the value parameter in a map.put method seems odd. But if what you want is to e.g. start from some set of parameters in general and see where flow goes without returning, such that the path is applicable in any call context, then you have the option of using DataFlow::FlowFeature getAFeature() { result instanceof DataFlow::FeatureHasSourceCallContext } in your configuration, since that will instruct the library to never follow return-edges from the callable containing the source.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@hugo-syn
Comment options

Comment options

You must be logged in to vote
6 replies
@hugo-syn
Comment options

@aschackmull
Comment options

@hugo-syn
Comment options

@aschackmull
Comment options

Answer selected by hugo-syn
@hugo-syn
Comment options

@aschackmull
Comment options

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