File tree 1 file changed +5
-4
lines changed
java/ql/lib/semmle/code/java/dataflow/internal
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,9 @@ private module CaptureInput implements VariableCapture::InputSig {
114
114
115
115
CapturedVariable getVariable ( ) { result = v }
116
116
117
- Expr getSource ( ) {
118
- result = this .( VariableAssign ) .getSource ( ) or
119
- result = this .( AssignOp )
117
+ Node getSource ( ) {
118
+ result . asExpr ( ) = this .( VariableAssign ) .getSource ( ) or
119
+ result . asExpr ( ) = this .( AssignOp )
120
120
}
121
121
}
122
122
@@ -162,7 +162,8 @@ private CaptureFlow::ClosureNode asClosureNode(Node n) {
162
162
result .( CaptureFlow:: ParameterNode ) .getParameter ( ) = n .asParameter ( ) or
163
163
result .( CaptureFlow:: ThisParameterNode ) .getCallable ( ) = n .( InstanceParameterNode ) .getCallable ( ) or
164
164
exprNode ( result .( CaptureFlow:: MallocNode ) .getClosureExpr ( ) ) .( PostUpdateNode ) .getPreUpdateNode ( ) =
165
- n
165
+ n or
166
+ result .( CaptureFlow:: VariableWriteSourceNode ) .getVariableWrite ( ) .getSource ( ) = n
166
167
}
167
168
168
169
private predicate captureStoreStep ( Node node1 , CapturedVariableContent c , Node node2 ) {
You can’t perform that action at this time.
0 commit comments