From 036fddfdb53cdaf356422a9bdc277d024bd69ae1 Mon Sep 17 00:00:00 2001 From: Rasmus Lerchedahl Petersen Date: Mon, 12 Apr 2021 08:18:24 +0200 Subject: [PATCH] Python: `Namable` -> `Nameable` --- python/ql/src/Security/CWE-327/InsecureProtocol.ql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/ql/src/Security/CWE-327/InsecureProtocol.ql b/python/ql/src/Security/CWE-327/InsecureProtocol.ql index 19f6acf5512..e31bf78443b 100644 --- a/python/ql/src/Security/CWE-327/InsecureProtocol.ql +++ b/python/ql/src/Security/CWE-327/InsecureProtocol.ql @@ -33,19 +33,19 @@ class ProtocolConfiguration extends DataFlow::Node { // // Note that AstNode is abstract and AstNode_ is a library class, so // we have to extend @py_ast_node. -class Namable extends @py_ast_node { - Namable() { +class Nameable extends @py_ast_node { + Nameable() { exists(ProtocolConfiguration protocolConfiguration | this = protocolConfiguration.asCfgNode().(CallNode).getFunction().getNode() ) or - exists(Namable attr | this = attr.(Attribute).getObject()) + exists(Nameable attr | this = attr.(Attribute).getObject()) } string toString() { result = "AstNode" } } -string callName(Namable call) { +string callName(Nameable call) { result = call.(Name).getId() or exists(Attribute a | a = call | result = callName(a.getObject()) + "." + a.getName())