Skip to content

Commit 26267b7

Browse files
author
Stephan Brandauer
committed
driveby: bug fix in automodel alert sink util
1 parent 53b3755 commit 26267b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/automodel/src/AutomodelAlertSinkUtil.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class PotentialSinkModelExpr extends Expr {
9696
or
9797
this = call.getQualifier() and argIdx = -1
9898
) and
99-
input = getArgumentForIndex(argIdx) and
99+
(if argIdx = -1 then input = "Argument[this]" else input = "Argument[" + argIdx + "]") and
100100
package = callable.getDeclaringType().getPackage().getName() and
101101
type = callable.getDeclaringType().getErasure().(RefType).nestedName() and
102102
subtypes = considerSubtypes(callable) and

0 commit comments

Comments
 (0)