File tree Expand file tree Collapse file tree
cpp/ql/src/semmle/code/cpp/models/implementations Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ private class StdMapFind extends TaintFunction {
150150 * The standard map `erase` function.
151151 */
152152private class StdMapErase extends TaintFunction {
153- StdMapErase ( ) { this .getCLassAndName ( "erase" ) instanceof MapOrUnorderedMap }
153+ StdMapErase ( ) { this .getClassAndName ( "erase" ) instanceof MapOrUnorderedMap }
154154
155155 override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
156156 // flow from qualifier to iterator return value
@@ -165,8 +165,7 @@ private class StdMapErase extends TaintFunction {
165165 */
166166private class StdMapEqualRange extends TaintFunction {
167167 StdMapEqualRange ( ) {
168- this .hasName ( [ "lower_bound" , "upper_bound" , "equal_range" ] ) and
169- this .getDeclaringType ( ) instanceof MapOrUnorderedMap
168+ this .getClassAndName ( [ "lower_bound" , "upper_bound" , "equal_range" ] ) instanceof MapOrUnorderedMap
170169 }
171170
172171 override predicate hasTaintFlow ( FunctionInput input , FunctionOutput output ) {
You can’t perform that action at this time.
0 commit comments