We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a2b170 commit 84c83f4Copy full SHA for 84c83f4
cpp/ql/lib/semmle/code/cpp/models/implementations/StdString.qll
@@ -66,7 +66,10 @@ abstract private class StdStringTaintFunction extends TaintFunction {
66
* Gets the index of a parameter to this function that is an iterator.
67
*/
68
final int getAnIteratorParameterIndex() {
69
- this.getParameter(result).getUnspecifiedType() instanceof Iterator
+ exists(Parameter p |
70
+ p = this.getParameter(result) and
71
+ [p.getType(), p.getUnspecifiedType()] instanceof Iterator
72
+ )
73
}
74
75
0 commit comments