Skip to content

Commit 4c23111

Browse files
committed
Update JCA.qll to fix overly specific barrier
Fix generic creation/init/use flow barrier logic: the barrier was previously cipher-specific inside a generic module, and other instances would therefore get no re-init barrier.
1 parent e0ff863 commit 4c23111

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • java/ql/lib/experimental/quantum

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ module JCAModel {
631631
}
632632

633633
predicate isBarrier(DataFlow::Node node, FlowState state) {
634-
exists(CipherInitCall call | node.asExpr() = call.getQualifier() |
634+
exists(Init call | node.asExpr() = call.(MethodCall).getQualifier() |
635635
state instanceof UninitializedFlowState
636636
or
637637
state.(InitializedFlowState).getInitCall() != call

0 commit comments

Comments
 (0)