mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: getParameter(_) is considered an anti-pattern.
This commit is contained in:
@@ -17,7 +17,7 @@ class MakeUniqueOrShared extends TaintFunction {
|
||||
// Exclude the specializations of `std::make_shared` and `std::make_unique` that allocate arrays
|
||||
// since these just take a size argument, which we don't want to propagate taint through.
|
||||
not this.isArray() and
|
||||
input.isParameter(_) and
|
||||
input.isParameter([0 .. getNumberOfParameters() - 1]) and
|
||||
output.isReturnValue()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user