diff --git a/cpp/ql/lib/semmle/code/cpp/models/implementations/StdString.qll b/cpp/ql/lib/semmle/code/cpp/models/implementations/StdString.qll index e2246874579..fd28363297a 100644 --- a/cpp/ql/lib/semmle/code/cpp/models/implementations/StdString.qll +++ b/cpp/ql/lib/semmle/code/cpp/models/implementations/StdString.qll @@ -66,7 +66,7 @@ abstract private class StdStringTaintFunction extends TaintFunction { * Gets the index of a parameter to this function that is an iterator. */ final int getAnIteratorParameterIndex() { - this.getParameter(result).getType() instanceof Iterator + this.getParameter(result).getUnspecifiedType() instanceof Iterator } }