We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddc5150 commit 658dbf4Copy full SHA for 658dbf4
cpp/ql/src/semmle/code/cpp/models/implementations/SmartPointer.qll
@@ -17,7 +17,7 @@ class MakeUniqueOrShared extends TaintFunction {
17
// Exclude the specializations of `std::make_shared` and `std::make_unique` that allocate arrays
18
// since these just take a size argument, which we don't want to propagate taint through.
19
not this.isArray() and
20
- input.isParameter(_) and
+ input.isParameter([0 .. getNumberOfParameters() - 1]) and
21
output.isReturnValue()
22
}
23
0 commit comments