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
1313 */
1414private class InputStreamWrapperAnonymousStep extends AdditionalTaintStep {
1515 override predicate step ( DataFlow:: Node n1 , DataFlow:: Node n2 ) {
16- exists ( Method m , AnonymousClass wrapper |
16+ exists ( Method m , NestedClass wrapper |
1717 m .hasName ( "read" ) and
1818 m .getDeclaringType ( ) = wrapper and
1919 wrapper .getASourceSupertype + ( ) instanceof TypeInputStream
2020 |
2121 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
2327 )
2428 }
2529}
You can’t perform that action at this time.
0 commit comments