Skip to content

Commit b18703e

Browse files
committed
update to use .getValue()
1 parent a5e5379 commit b18703e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

powershell/ql/lib/semmle/code/powershell/security/cryptography/CryptographyModule.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,8 @@ class CipherBlockModeIntConst extends BlockMode {
251251
string modeName;
252252

253253
CipherBlockModeIntConst() {
254-
exists(ConstExpr c, int val |
255-
c = this.asExpr().getExpr() and
256-
val = c.getValueString().toInt() and
254+
exists(int val |
255+
val = this.asExpr().getExpr().getValue().asInt() and
257256
cipherModeIntValue(val, modeName)
258257
)
259258
}

0 commit comments

Comments
 (0)