Skip to content

Commit b08533b

Browse files
committed
Crypto: Fix missing output variable
1 parent c37b7c1 commit b08533b

File tree

1 file changed

+3
-1
lines changed
  • java/ql/lib/experimental/quantum

1 file changed

+3
-1
lines changed

java/ql/lib/experimental/quantum/JCA.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,9 +1584,11 @@ module JCAModel {
15841584
}
15851585

15861586
class MacOperationCall extends Crypto::MacOperationInstance instanceof MethodCall {
1587+
Expr output;
1588+
15871589
MacOperationCall() {
15881590
super.getMethod().getDeclaringType().hasQualifiedName("javax.crypto", "Mac") and
1589-
exists(Expr output |
1591+
(
15901592
super.getMethod().hasStringSignature(["doFinal()", "doFinal(byte[])"]) and this = output
15911593
or
15921594
super.getMethod().hasStringSignature("doFinal(byte[], int)") and

0 commit comments

Comments
 (0)