change matches to equality

Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
Jami
2022-11-30 16:14:50 -05:00
parent 315ceb57e9
commit f54480b7c8

View File

@@ -38,7 +38,7 @@ private module Asymmetric {
Sink() {
exists(KeyPairGenInit kpgInit, KeyPairGen kpg |
algoName in ["RSA", "DSA", "DH"] and
kpg.getAlgoName().matches(algoName) and
kpg.getAlgoName() = algoName and
DataFlow::localExprFlow(kpg, kpgInit.getQualifier()) and
this.asExpr() = kpgInit.getKeySizeArg()
)