File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/queries/Security/CWE-135
test/query-tests/Security/CWE-135 Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ predicate isSink0(Expr e) {
71
71
// `NSMakeRange`
72
72
funcName = "NSMakeRange" and
73
73
argName = [ "loc" , "len" ] and
74
- call .getStaticTarget ( ) .getName ( ) = funcName and
74
+ call .getStaticTarget ( ) .getName ( ) . matches ( funcName + "%" ) and
75
75
call .getStaticTarget ( ) .getParam ( arg ) .getName ( ) = argName and
76
76
call .getArgument ( arg ) .getExpr ( ) = e
77
77
)
Original file line number Diff line number Diff line change 1
1
edges
2
2
nodes
3
+ | StringLengthConflation.swift:72:33:72:35 | .count | semmle.label | .count |
3
4
| StringLengthConflation.swift:78:47:78:49 | .count | semmle.label | .count |
4
5
subpaths
5
6
#select
7
+ | StringLengthConflation.swift:72:33:72:35 | .count | StringLengthConflation.swift:72:33:72:35 | .count | StringLengthConflation.swift:72:33:72:35 | .count | RESULT |
6
8
| StringLengthConflation.swift:78:47:78:49 | .count | StringLengthConflation.swift:78:47:78:49 | .count | StringLengthConflation.swift:78:47:78:49 | .count | RESULT |
You can’t perform that action at this time.
0 commit comments