Skip to content

Commit c9ec30f

Browse files
committed
C++: Update use of deprecated methods.
1 parent e9132d8 commit c9ec30f

File tree

1 file changed

+4
-4
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+4
-4
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Strings.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ class StringConstructor extends TaintFunction {
88

99
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
1010
// flow from any constructor argument to return value
11-
input.isInParameter(_) and
12-
output.isOutReturnValue()
11+
input.isParameter(_) and
12+
output.isReturnValue()
1313
}
1414
}
1515

@@ -21,7 +21,7 @@ class StringCStr extends TaintFunction {
2121

2222
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
2323
// flow from string itself (qualifier) to return value
24-
input.isInQualifier() and
25-
output.isOutReturnValue()
24+
input.isQualifierObject() and
25+
output.isReturnValue()
2626
}
2727
}

0 commit comments

Comments
 (0)