mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Fix modeling of std::set::emplace
This commit is contained in:
@@ -61,7 +61,7 @@ class StdSetEmplace extends TaintFunction {
|
||||
// flow from any parameter to qualifier and return value
|
||||
// (here we assume taint flow from any constructor parameter to the constructed object)
|
||||
// (where the return value is a pair, this should really flow just to the first part of it)
|
||||
input.isParameter([0 .. getNumberOfParameters() - 1]) and
|
||||
input.isParameterDeref([0 .. getNumberOfParameters() - 1]) and
|
||||
(
|
||||
output.isQualifierObject() or
|
||||
output.isReturnValue()
|
||||
|
||||
Reference in New Issue
Block a user