about summary refs log tree commit diff
path: root/utils/autodict_ql/litool.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/litool.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/litool.ql')
-rw-r--r--utils/autodict_ql/litool.ql10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/autodict_ql/litool.ql b/utils/autodict_ql/litool.ql
new file mode 100644
index 00000000..b7f4bf33
--- /dev/null
+++ b/utils/autodict_ql/litool.ql
@@ -0,0 +1,10 @@
+import cpp
+
+class HexOrOctLiteral extends Literal{
+    HexOrOctLiteral(){
+      (this instanceof HexLiteral) or (this instanceof OctalLiteral)
+    }
+}
+
+from HexOrOctLiteral lit
+select lit.getValueText()
\ No newline at end of file