C++: getParameter(_) is considered an anti-pattern.

This commit is contained in:
Geoffrey White
2020-10-19 18:42:33 +01:00
parent ddc5150080
commit 658dbf45d2

View File

@@ -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()
}