mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
@@ -134,8 +134,8 @@ private class MyBatisProviderStep extends TaintTracking::AdditionalValueStep {
|
||||
override predicate step(DataFlow::Node n1, DataFlow::Node n2) {
|
||||
exists(MethodAccess ma, Annotation a, Method providerMethod |
|
||||
exists(int i |
|
||||
ma.getArgument(i) = n1.asExpr() and
|
||||
providerMethod.getParameter(i) = n2.asParameter()
|
||||
ma.getArgument(pragma[only_bind_into](i)) = n1.asExpr() and
|
||||
providerMethod.getParameter(pragma[only_bind_into](i)) = n2.asParameter()
|
||||
)
|
||||
|
|
||||
a.getType() instanceof MyBatisProvider and
|
||||
|
||||
Reference in New Issue
Block a user