We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5e5379 commit b18703eCopy full SHA for b18703e
1 file changed
powershell/ql/lib/semmle/code/powershell/security/cryptography/CryptographyModule.qll
@@ -251,9 +251,8 @@ class CipherBlockModeIntConst extends BlockMode {
251
string modeName;
252
253
CipherBlockModeIntConst() {
254
- exists(ConstExpr c, int val |
255
- c = this.asExpr().getExpr() and
256
- val = c.getValueString().toInt() and
+ exists(int val |
+ val = this.asExpr().getExpr().getValue().asInt() and
257
cipherModeIntValue(val, modeName)
258
)
259
}
0 commit comments