File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
swift/ql/src/queries/Security/CWE-135 Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 12
12
13
13
import swift
14
14
import codeql.swift.dataflow.DataFlow
15
+ import codeql.swift.dataflow.TaintTracking
15
16
import DataFlow:: PathGraph
16
17
17
18
/**
@@ -52,7 +53,7 @@ class StringLengthConflationFlowState extends string {
52
53
* a `String` or an `NSString` object, to a sink of a different kind that
53
54
* expects an incompatible measure of length.
54
55
*/
55
- class StringLengthConflationConfiguration extends DataFlow :: Configuration {
56
+ class StringLengthConflationConfiguration extends TaintTracking :: Configuration {
56
57
StringLengthConflationConfiguration ( ) { this = "StringLengthConflationConfiguration" }
57
58
58
59
override predicate isSource ( DataFlow:: Node node , string flowstate ) {
@@ -177,11 +178,6 @@ class StringLengthConflationConfiguration extends DataFlow::Configuration {
177
178
correctFlowState .( StringLengthConflationFlowState ) .getEquivClass ( )
178
179
)
179
180
}
180
-
181
- override predicate isAdditionalFlowStep ( DataFlow:: Node node1 , DataFlow:: Node node2 ) {
182
- // allow flow through `+`, `-`, `*` etc.
183
- node2 .asExpr ( ) .( ArithmeticOperation ) .getAnOperand ( ) = node1 .asExpr ( )
184
- }
185
181
}
186
182
187
183
from
You can’t perform that action at this time.
0 commit comments