C++: Strip away specifiers and typedefs when finding iterator parameters for a string taint function.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-07-12 09:54:04 +01:00
parent 1a2b4a30bb
commit 813f08ef57

View File

@@ -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
}
}