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) {
7171 // `NSMakeRange`
7272 funcName = "NSMakeRange" and
7373 argName = [ "loc" , "len" ] and
74- call .getStaticTarget ( ) .getName ( ) = funcName and
74+ call .getStaticTarget ( ) .getName ( ) . matches ( funcName + "%" ) and
7575 call .getStaticTarget ( ) .getParam ( arg ) .getName ( ) = argName and
7676 call .getArgument ( arg ) .getExpr ( ) = e
7777 )
Original file line number Diff line number Diff line change 11edges
22nodes
3+ | StringLengthConflation.swift:72:33:72:35 | .count | semmle.label | .count |
34| StringLengthConflation.swift:78:47:78:49 | .count | semmle.label | .count |
45subpaths
56#select
7+ | StringLengthConflation.swift:72:33:72:35 | .count | StringLengthConflation.swift:72:33:72:35 | .count | StringLengthConflation.swift:72:33:72:35 | .count | RESULT |
68| 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