Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc2c623 commit 6408ee2Copy full SHA for 6408ee2
1 file changed
python/ql/src/Security/CWE-327/InsecureProtocol.ql
@@ -25,6 +25,8 @@ class ProtocolConfiguration extends DataFlow::Node {
25
or
26
unsafe_context_creation(this, _)
27
}
28
+
29
+ AstNode getNode() { result = this.asCfgNode().(CallNode).getFunction().getNode() }
30
31
32
// Helper for pretty printer `callName`.
@@ -36,9 +38,7 @@ class ProtocolConfiguration extends DataFlow::Node {
36
38
// we have to extend @py_ast_node.
37
39
class Nameable extends @py_ast_node {
40
Nameable() {
- exists(ProtocolConfiguration protocolConfiguration |
- this = protocolConfiguration.asCfgNode().(CallNode).getFunction().getNode()
41
- )
+ this = any(ProtocolConfiguration pc).getNode()
42
43
exists(Nameable attr | this = attr.(Attribute).getObject())
44
0 commit comments