about summary refs log tree commit diff
path: root/utils/autodict_ql/memcmp-str.ql
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2021-04-03 18:52:00 +0200
committerGitHub <noreply@github.com>2021-04-03 18:52:00 +0200
commit53facd8882173873a7b78860b0fb49884de90c5b (patch)
tree5bafe92efcf63417e465671815f1ada07737b944 /utils/autodict_ql/memcmp-str.ql
parent3ff4ca348c344bded53f53b0d0c4b020a188f26e (diff)
parentd35a90101f1ae51fa022332828209139a7e070ad (diff)
downloadafl++-53facd8882173873a7b78860b0fb49884de90c5b.tar.gz
Merge pull request #856 from Microsvuln/dev
Autodict-QL : Token generation for fuzzing with CodeQL
Diffstat (limited to 'utils/autodict_ql/memcmp-str.ql')
-rw-r--r--utils/autodict_ql/memcmp-str.ql8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/autodict_ql/memcmp-str.ql b/utils/autodict_ql/memcmp-str.ql
new file mode 100644
index 00000000..830c9cac
--- /dev/null
+++ b/utils/autodict_ql/memcmp-str.ql
@@ -0,0 +1,8 @@
+import cpp 
+
+/// function :  memcmp trace
+
+from FunctionCall fucall, Expr size
+where
+    fucall.getTarget().hasName("memcmp")
+select fucall.getArgument(_).getValueText()	
\ No newline at end of file