Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eb9cea4

Browse files
author
Dave Bartolomeo
committed
Fix modeling of std::set::emplace
1 parent 40cd96e commit eb9cea4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cpp/ql/src/semmle/code/cpp/models/implementations

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class StdSetEmplace extends TaintFunction {
6161
// flow from any parameter to qualifier and return value
6262
// (here we assume taint flow from any constructor parameter to the constructed object)
6363
// (where the return value is a pair, this should really flow just to the first part of it)
64-
input.isParameter([0 .. getNumberOfParameters() - 1]) and
64+
input.isParameterDeref([0 .. getNumberOfParameters() - 1]) and
6565
(
6666
output.isQualifierObject() or
6767
output.isReturnValue()

0 commit comments

Comments
 (0)