mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Update cpp/ql/src/semmle/code/cpp/models/implementations/StdContainer.qll
Co-authored-by: Jonas Jensen <jbj@github.com>
This commit is contained in:
@@ -25,7 +25,7 @@ class StdSequenceContainerConstructor extends Constructor, TaintFunction {
|
||||
* value type of the container.
|
||||
*/
|
||||
int getAValueTypeParameterIndex() {
|
||||
getParameter(result).getType().getUnspecifiedType().(ReferenceType).getBaseType() =
|
||||
getParameter(result).getUnspecifiedType().(ReferenceType).getBaseType() =
|
||||
getDeclaringType().getTemplateArgument(0) // i.e. the `T` of this `std::vector<T>`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user