Skip to content

Commit 587b4fe

Browse files
committed
C++: Add missing condition to 'isChiBeforeIteratorUse'.
1 parent bfe9ae2 commit 587b4fe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternalsCommon.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ private module Cached {
538538
numberOfLoads >= 0 and
539539
isUse(_, iteratorDerefAddress, iteratorBase, numberOfLoads + 2, 0) and
540540
iteratorBase.getResultType() instanceof Interfaces::Iterator and
541+
load.getSourceAddressOperand() = iteratorDerefAddress and
541542
read.getPrimaryInstruction() = load.getSourceAddress() and
542543
memory = read.getSideEffectOperand().getAnyDef()
543544
)

0 commit comments

Comments
 (0)