Skip to content

Commit 813f08e

Browse files
committed
C++: Strip away specifiers and typedefs when finding iterator parameters for a string taint function.
1 parent 1a2b4a3 commit 813f08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/models/implementations/StdString.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ abstract private class StdStringTaintFunction extends TaintFunction {
6666
* Gets the index of a parameter to this function that is an iterator.
6767
*/
6868
final int getAnIteratorParameterIndex() {
69-
this.getParameter(result).getType() instanceof Iterator
69+
this.getParameter(result).getUnspecifiedType() instanceof Iterator
7070
}
7171
}
7272

0 commit comments

Comments
 (0)