File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
cpp/ql/src/experimental/Security/CWE/CWE-409 Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -25,15 +25,13 @@ class NextInMemberStep extends DecompressionFlowStep {
25
25
NextInMemberStep ( ) { this = "NextInMemberStep" }
26
26
27
27
override predicate isAdditionalFlowStep ( DataFlow:: Node node1 , DataFlow:: Node node2 ) {
28
- exists ( Variable nextInVar , VariableAccess zStreamAccess |
28
+ exists ( Variable nextInVar |
29
29
nextInVar .getDeclaringType ( ) .hasName ( "z_stream" ) and
30
- nextInVar .hasName ( "next_in" ) and
31
- zStreamAccess .getType ( ) .hasName ( "z_stream" )
30
+ nextInVar .hasName ( "next_in" )
32
31
|
33
- nextInVar .getAnAccess ( ) .getQualifier ( ) .( VariableAccess ) .getTarget ( ) =
34
- zStreamAccess .getTarget ( ) and
35
32
node1 .asIndirectExpr ( ) = nextInVar .getAnAssignedValue ( ) and
36
- node2 .asExpr ( ) = zStreamAccess
33
+ node2 .asExpr ( ) =
34
+ nextInVar .getAnAccess ( ) .getQualifier ( ) .( VariableAccess ) .getTarget ( ) .getAnAccess ( )
37
35
)
38
36
}
39
37
}
You can’t perform that action at this time.
0 commit comments