Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbac4ce commit 0952fb9Copy full SHA for 0952fb9
1 file changed
cpp/ql/src/semmle/code/cpp/models/implementations/StdString.qll
@@ -16,7 +16,7 @@ class StdStringCStr extends TaintFunction {
16
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
17
// flow from string itself (qualifier) to return value
18
input.isQualifierObject() and
19
- output.isReturnValue()
+ output.isReturnValueDeref()
20
}
21
22
@@ -29,7 +29,7 @@ class StdStringData extends TaintFunction {
29
30
31
32
33
or
34
// reverse flow from returned reference to the qualifier (for writes to
35
// `data`)
0 commit comments