Skip to content

Commit c856552

Browse files
committed
Add preOffset to the bindingset for simpleArrayLengthStep.
1 parent b838426 commit c856552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/experimental/semmle/code/cpp/rangeanalysis/ArrayLengthAnalysis.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private int getBaseSizeForPointerType(PointerType type) { result = type.getBaseT
128128
* steps to `array` that points to `offset + offsetDelta` in one step.
129129
* This predicate does not contain any recursive steps.
130130
*/
131-
bindingset[prevOffsetDelta]
131+
bindingset[prevOffset,prevOffsetDelta]
132132
predicate simpleArrayLengthStep(
133133
Instruction array, Offset offset, int offsetDelta, Instruction prev, Offset prevOffset,
134134
int prevOffsetDelta

0 commit comments

Comments
 (0)