Skip to content

Commit ee8c0cb

Browse files
committed
C++: Support member initializer lists > 1000 items
1 parent 503cbf1 commit ee8c0cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowUtil.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,15 @@ private module ThisFlow {
364364
// make space for any `ConstructorFieldInit`s there may be between it and
365365
// the block contents.
366366
thisNode.(ImplicitParameterNode).getFunction().getBlock() = b and
367-
result = -1000
367+
result = -2147483648
368368
or
369369
// Place the synthetic `this` node for a `ConstructorFieldInit` at a
370370
// negative offset in the first basic block, between the
371371
// `ImplicitParameterNode` and the first statement.
372372
exists(Constructor constructor, int i |
373373
thisNode.(PreConstructorInitThis).getConstructorFieldInit() =
374374
constructor.getInitializer(i) and
375-
result = -999 + i and
375+
result = -2147483648 + 1 + i and
376376
b = thisNode.getFunction().getBlock()
377377
)
378378
or

0 commit comments

Comments
 (0)