Skip to content

Commit 0952fb9

Browse files
committed
C++: Minor correction in one of the string models.
1 parent fbac4ce commit 0952fb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class StdStringCStr extends TaintFunction {
1616
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
1717
// flow from string itself (qualifier) to return value
1818
input.isQualifierObject() and
19-
output.isReturnValue()
19+
output.isReturnValueDeref()
2020
}
2121
}
2222

@@ -29,7 +29,7 @@ class StdStringData extends TaintFunction {
2929
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
3030
// flow from string itself (qualifier) to return value
3131
input.isQualifierObject() and
32-
output.isReturnValue()
32+
output.isReturnValueDeref()
3333
or
3434
// reverse flow from returned reference to the qualifier (for writes to
3535
// `data`)

0 commit comments

Comments
 (0)