Skip to content

Commit 3b29920

Browse files
committed
C++: Replace getAChild with getAnArgument().
1 parent 09d00b1 commit 3b29920

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cpp/ql/src/Security/CWE/CWE-327/BrokenCryptoAlgorithm.ql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ class InsecureFunctionCall extends FunctionCall {
7979
explain = "function call"
8080
or
8181
exists(MacroInvocation mi |
82-
mi.getAGeneratedElement() = this.getAChild*() and
82+
mi.getAGeneratedElement() = this.getAnArgument() and
8383
mi.getMacro() = getAnInsecureEncryptionMacro() and
8484
blame = mi and
8585
explain = "macro invocation"
8686
)
8787
or
8888
exists(EnumConstantAccess ec |
89-
ec = this.getAChild*() and
89+
ec = this.getAnArgument() and
9090
ec.getTarget() = getAnInsecureEncryptionEnumConst() and
9191
blame = ec and
9292
explain = "enum constant access"
@@ -97,12 +97,12 @@ class InsecureFunctionCall extends FunctionCall {
9797
getTarget() = getAdditionalEvidenceFunction()
9898
or
9999
exists(MacroInvocation mi |
100-
mi.getAGeneratedElement() = this.getAChild*() and
100+
mi.getAGeneratedElement() = this.getAnArgument() and
101101
mi.getMacro() = getAdditionalEvidenceMacro()
102102
)
103103
or
104104
exists(EnumConstantAccess ec |
105-
ec = this.getAChild*() and
105+
ec = this.getAnArgument() and
106106
ec.getTarget() = getAdditionalEvidenceEnumConst()
107107
)
108108
)

0 commit comments

Comments
 (0)