Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 552f0a7

Browse files
authored
C++: Address review.
1 parent a42700f commit 552f0a7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • cpp/ql/src/semmle/code/cpp/models/implementations

cpp/ql/src/semmle/code/cpp/models/implementations/StdMap.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private class StdMapFind extends TaintFunction {
150150
* The standard map `erase` function.
151151
*/
152152
private 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
*/
166166
private 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) {

0 commit comments

Comments
 (0)