File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
java/ql/lib/semmle/code/java/frameworks Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -13,13 +13,17 @@ private import semmle.code.java.dataflow.FlowSteps
13
13
*/
14
14
private class InputStreamWrapperAnonymousStep extends AdditionalTaintStep {
15
15
override predicate step ( DataFlow:: Node n1 , DataFlow:: Node n2 ) {
16
- exists ( Method m , AnonymousClass wrapper |
16
+ exists ( Method m , NestedClass wrapper |
17
17
m .hasName ( "read" ) and
18
18
m .getDeclaringType ( ) = wrapper and
19
19
wrapper .getASourceSupertype + ( ) instanceof TypeInputStream
20
20
|
21
21
n1 .( DataFlow:: PostUpdateNode ) .getPreUpdateNode ( ) .asExpr ( ) = m .getParameter ( 0 ) .getAnAccess ( ) and
22
- n2 .asExpr ( ) = wrapper .getClassInstanceExpr ( )
22
+ n2 .asExpr ( )
23
+ .( ClassInstanceExpr )
24
+ .getConstructedType ( )
25
+ .getASourceSupertype * ( )
26
+ .getSourceDeclaration ( ) = wrapper
23
27
)
24
28
}
25
29
}
You can’t perform that action at this time.
0 commit comments