Skip to content

Commit 24c6e50

Browse files
committed
Java: ContainerFlow: RValue -> Expr
While most flow for a qualifierToArgumentStep goes through a variable use this is not always the case. Therefore it is best to remove the restriction to RValue to allow taint steps to use postupdate nodes. See also: ba86dea
1 parent 0bd103a commit 24c6e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/semmle/code/java/dataflow/internal/ContainerFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private predicate qualifierToMethodStep(Expr tracked, MethodAccess sink) {
180180
tracked = sink.getQualifier()
181181
}
182182

183-
private predicate qualifierToArgumentStep(Expr tracked, RValue sink) {
183+
private predicate qualifierToArgumentStep(Expr tracked, Expr sink) {
184184
exists(MethodAccess ma, CollectionMethod method |
185185
method = ma.getMethod() and
186186
(

0 commit comments

Comments
 (0)