Skip to content

Commit da83e91

Browse files
committed
C++: Replace getAnExpandedElement with getAGeneratedElement as it's all we really need.
1 parent 3b29920 commit da83e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class InsecureFunctionCall extends FunctionCall {
7979
explain = "function call"
8080
or
8181
exists(MacroInvocation mi |
82-
mi.getAGeneratedElement() = this.getAnArgument() and
82+
mi.getAnExpandedElement() = this.getAnArgument() and
8383
mi.getMacro() = getAnInsecureEncryptionMacro() and
8484
blame = mi and
8585
explain = "macro invocation"
@@ -97,7 +97,7 @@ class InsecureFunctionCall extends FunctionCall {
9797
getTarget() = getAdditionalEvidenceFunction()
9898
or
9999
exists(MacroInvocation mi |
100-
mi.getAGeneratedElement() = this.getAnArgument() and
100+
mi.getAnExpandedElement() = this.getAnArgument() and
101101
mi.getMacro() = getAdditionalEvidenceMacro()
102102
)
103103
or

0 commit comments

Comments
 (0)