We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10fb41 commit 54e4d7cCopy full SHA for 54e4d7c
.github/codeql/queries/javascript/security/1.ql
@@ -1 +1,8 @@
1
-123
+// CodeQL 示例:查询具有特定特征的变量
2
+import java
3
+from MethodAccess ma, Method m
4
+where
5
+m = ma.getMethod () and
6
+m.getName().regexpMatch("equals |getResourceAsStream|getResourceAsStream|getSyste")
7
+not m.getDeclaringType() -getName() matches ("SecureUtil WhiteListedClass")
8
+select ma, "Risky method" + m. getName()
0 commit comments