about summary refs log tree commit diff
path: root/utils/autodict_ql/strtool.ql
diff options
context:
space:
mode:
Diffstat (limited to 'utils/autodict_ql/strtool.ql')
-rw-r--r--utils/autodict_ql/strtool.ql6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/autodict_ql/strtool.ql b/utils/autodict_ql/strtool.ql
index f78aabbb..253d1555 100644
--- a/utils/autodict_ql/strtool.ql
+++ b/utils/autodict_ql/strtool.ql
@@ -3,8 +3,8 @@ import semmle.code.cpp.dataflow.DataFlow
 class StringLiteralNode extends DataFlow::Node {
   StringLiteralNode() { this.asExpr() instanceof StringLiteral }
 }
-class MemcmpArgNode extends DataFlow::Node {
-   MemcmpArgNode() {
+class CmpArgNode extends DataFlow::Node {
+   CmpArgNode() {
     exists(FunctionCall fc |
       fc.getTarget().getName().regexpMatch(".*(str|mem|strn|b)*(cmp|str)*") and
       fc.getArgument(0) = this.asExpr() 
@@ -17,7 +17,7 @@ class MemcmpArgNode extends DataFlow::Node {
   }
 }
 
-from StringLiteralNode src, MemcmpArgNode arg
+from StringLiteralNode src, CmpArgNode arg
 where
   DataFlow::localFlow(src, arg)