We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62bc035 commit 2bd25daCopy full SHA for 2bd25da
ruby/ql/lib/codeql/ruby/security/OpenSSL.qll
@@ -378,7 +378,7 @@ private class CipherInstantiation extends CipherCallNode {
378
private CipherMode cipherMode;
379
380
CipherInstantiation() {
381
- exists(string cipherName |
+ exists(string cipherName | cipher.matchesName(cipherName) |
382
// `OpenSSL::Cipher.new('<cipherName>')`
383
this = cipherApi().getAnInstantiation() and
384
cipherName = this.getStringArgument(0) and
@@ -436,8 +436,6 @@ private class CipherInstantiation extends CipherCallNode {
436
cipherMode.isBlockMode(blockMode)
437
)
438
439
- |
440
- cipher.matchesName(cipherName)
441
442
}
443
0 commit comments