mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
C++: Remove StdMapBeginEnd as we now have a general model BeginOrEndFunction in main.
This commit is contained in:
@@ -24,23 +24,6 @@ class StdMapInsert extends TaintFunction {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The standard map `begin` and `end` functions and their
|
||||
* variants.
|
||||
*/
|
||||
class StdMapBeginEnd extends TaintFunction {
|
||||
StdMapBeginEnd() {
|
||||
this.hasQualifiedName("std", ["map", "unordered_map"], ["begin", "end", "cbegin", "cend"])
|
||||
or
|
||||
this.hasQualifiedName("std", "map", ["rbegin", "crbegin", "rend", "crend"])
|
||||
}
|
||||
|
||||
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
|
||||
input.isQualifierObject() and
|
||||
output.isReturnValue()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The standard map `swap` functions.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user