diff --git a/cpp/misra/src/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.ql b/cpp/misra/src/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.ql index ceab8b476..3fd575e4b 100644 --- a/cpp/misra/src/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.ql +++ b/cpp/misra/src/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.ql @@ -27,18 +27,31 @@ class ArrayDeclaration extends VariableDeclarationEntry { ArrayDeclaration() { this.getType().getUnderlyingType() instanceof ArrayType } /** - * Gets the declared length of this array at the given level of indirection. + * Gets the declared length of the dimension of this array whose elements have type + * `elementType`. For example, for `int a[2][3]` the length is 2 if `elementType` is `int[3]`, + * and 3 if `elementType` is `int`. */ - int getLength(int indirection) { result = this.getArrayType(indirection).getArraySize() } - - private ArrayType getArrayType(int indirection) { - indirection = 0 and result = this.getType().getUnderlyingType() - or + int getLength(Type elementType) { exists(ArrayType at | - at = getArrayType(indirection - 1) and - result = at.getBaseType().getUnderlyingType() + at = this.getAnArrayType() and + at.getBaseType().getUnspecifiedType() = elementType.getUnspecifiedType() and + result = at.getArraySize() ) } + + /** + * Gets the number of dimensions of this array. + */ + int getNumberOfDimensions() { result = count(this.getAnArrayType()) } + + /** + * Gets the type of this array, or the type of a nested array in a multi-dimensional array. + */ + private ArrayType getAnArrayType() { + result = this.getType().getUnderlyingType() + or + result = this.getAnArrayType().getBaseType().getUnderlyingType() + } } /** @@ -154,25 +167,23 @@ class ArrayAllocation extends TArrayAllocation { } /** - * Gets the number of the object that the array holds. This number is exact for a stack-allocated - * array, and the minimum estimated value for a heap-allocated one. + * Gets the number of objects that the array holds when it is accessed through a pointer to + * `elementType`. This number is exact for a stack-allocated array, and the minimum estimated + * value for a heap-allocated one. + * + * For a stack-allocated multi-dimensional array, this is the length of the dimension whose + * elements have type `elementType`. For example, for `int a[2][3]` the length is 2 when the + * array is accessed through a pointer to `int[3]`, and 3 when it is accessed through a pointer + * to `int`. */ - int getLength(DataFlow::Node node) { - exists(DataFlow::IndirectUninitializedNode inode | - inode = node and - inode.getLocalVariable() = this.asStackAllocation().getVariable() and - result = this.asStackAllocation().getLength(inode.getIndirectionIndex()) - ) + bindingset[elementType] + int getLength(Type elementType) { + result = this.asStackAllocation().getLength(elementType) or - node.asInstruction().(UninitializedInstruction).getLocalVariable() = - this.asStackAllocation().getVariable() and - result = this.asStackAllocation().getLength(0) - or - node.asConvertedExpr() = this.asDynamicAllocation() and result = this.asDynamicAllocation().getMinNumElements() or result = 1 and - node.asExpr() = this.asAddressOfExpr() + exists(this.asAddressOfExpr()) } Location getLocation() { @@ -184,7 +195,22 @@ class ArrayAllocation extends TArrayAllocation { /** * Gets the node associated with this allocation. */ - DataFlow::Node getNode() { exists(this.getLength(result)) } + DataFlow::Node getNode() { + exists(ArrayDeclaration decl, LocalVariable v | + decl = this.asStackAllocation() and v = decl.getVariable() + | + exists(DataFlow::IndirectUninitializedNode inode | inode = result | + inode.getLocalVariable() = v and + inode.getIndirectionIndex() < decl.getNumberOfDimensions() + ) + or + result.asInstruction().(UninitializedInstruction).getLocalVariable() = v + ) + or + result.asConvertedExpr() = this.asDynamicAllocation() + or + result.asExpr() = this.asAddressOfExpr() + } Expr asExpr() { result = this.asStackAllocation().getVariable().getAnAccess() or @@ -271,6 +297,15 @@ class PointerFormation extends TPointerFormation { DataFlow::Node getBaseNode() { result.asIndirectExpr() = this.getBase() } + /** + * Gets the type of the elements that the base pointer points to. If the base is an array, + * this is the element type of the array. For example, for `a[1][2]` where `a` has type + * `int[2][3]`, this is `int[3]` for `a[1]`, and `int` for `a[1][2]`. + */ + Type getBaseElementType() { + result = this.getBase().getFullyConverted().getUnspecifiedType().(PointerType).getBaseType() + } + /** * Gets the expression associated with this pointer formation. */ @@ -328,6 +363,12 @@ class FatPointer extends TFatPointer { result = this.asIndexAdjusted().getOffset() } + /** + * Gets the type of the elements that the base pointer of this fat pointer points to, if this + * is an index-adjusted pointer. + */ + Type getBaseElementType() { result = this.asIndexAdjusted().getBaseElementType() } + DataFlow::Node getNode() { result = this.asAllocated().getNode() or result = this.asIndexAdjusted().getNode() @@ -389,9 +430,10 @@ class FatPointer extends TFatPointer { * - currentOffset_0 = srcOffset_0 + sinkOffset_0 if src is an ArrayAllocation * - currentOffset_n = currentOffset_{n-1} + sinkOffset_n if src is a PointerFormation * - * Note that for n-dimensional stack-initialized arrays, the length information is created for each - * initialization level. For example, the below 2-dimensional array produces two `def. of buf` with - * length 2 and length 3, respectively. + * Note that n-dimensional stack-initialized arrays have a length for each dimension. The length + * that is used is determined by the type of the base pointer of `end`. For example, the below + * 2-dimensional array has length 2 when it is accessed through a pointer to `int[3]` (as in + * `buf[2]`), and length 3 when it is accessed through a pointer to `int` (as in `buf[0][3]`). * * ``` C++ * int buf[2][3] = {{1, 2, 3}, {4, 5, 6}} @@ -411,7 +453,7 @@ predicate srcSinkLengthMap( /* Implement the equation that computes the current offset. */ ( /* Base case: The object is allocated and a fat pointer created. */ - length = start.asAllocated().getLength(src.getNode()) and // Get the length at the given indirection level. + length = start.asAllocated().getLength(end.getBaseElementType()) and currentOffset = srcOffset + sinkOffset or /* Recursive case: A fat pointer is derived from a fat pointer. */ diff --git a/cpp/misra/test/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.expected b/cpp/misra/test/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.expected index 65b23db21..47ad62214 100644 --- a/cpp/misra/test/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.expected +++ b/cpp/misra/test/rules/RULE-8-7-1/PointerArithmeticFormsAnInvalidPointer.expected @@ -1,15 +1,16 @@ edges -| test.cpp:6:65:6:69 | array | test.cpp:9:17:9:21 | array | provenance | | -| test.cpp:6:65:6:69 | array | test.cpp:10:17:10:21 | array | provenance | | -| test.cpp:6:65:6:69 | array | test.cpp:12:7:12:11 | array | provenance | | -| test.cpp:6:65:6:69 | array | test.cpp:14:7:14:11 | array | provenance | | -| test.cpp:6:65:6:69 | array | test.cpp:16:19:16:23 | array | provenance | | -| test.cpp:19:59:19:63 | array | test.cpp:21:16:21:20 | array | provenance | | -| test.cpp:19:59:19:63 | array | test.cpp:22:16:22:20 | array | provenance | | -| test.cpp:19:59:19:63 | array | test.cpp:23:16:23:20 | array | provenance | | -| test.cpp:19:59:19:63 | array | test.cpp:24:16:24:20 | array | provenance | | -| test.cpp:19:59:19:63 | array | test.cpp:26:18:26:22 | array | provenance | | -| test.cpp:19:59:19:63 | array | test.cpp:28:18:28:22 | array | provenance | | +| test.cpp:6:65:6:69 | *array | test.cpp:6:65:6:69 | *array | provenance | | +| test.cpp:6:65:6:69 | *array | test.cpp:9:17:9:21 | *array | provenance | | +| test.cpp:6:65:6:69 | *array | test.cpp:10:17:10:21 | *array | provenance | | +| test.cpp:6:65:6:69 | *array | test.cpp:12:7:12:11 | *array | provenance | | +| test.cpp:6:65:6:69 | *array | test.cpp:14:7:14:11 | *array | provenance | | +| test.cpp:6:65:6:69 | *array | test.cpp:16:19:16:23 | *array | provenance | | +| test.cpp:19:59:19:63 | *array | test.cpp:21:16:21:20 | *array | provenance | | +| test.cpp:19:59:19:63 | *array | test.cpp:22:16:22:20 | *array | provenance | | +| test.cpp:19:59:19:63 | *array | test.cpp:23:16:23:20 | *array | provenance | | +| test.cpp:19:59:19:63 | *array | test.cpp:24:16:24:20 | *array | provenance | | +| test.cpp:19:59:19:63 | *array | test.cpp:26:18:26:22 | *array | provenance | | +| test.cpp:19:59:19:63 | *array | test.cpp:28:18:28:22 | *array | provenance | | | test.cpp:31:56:31:60 | array | test.cpp:34:17:34:21 | array | provenance | | | test.cpp:31:56:31:60 | array | test.cpp:36:17:36:21 | array | provenance | | | test.cpp:31:56:31:60 | array | test.cpp:38:17:38:21 | array | provenance | | @@ -44,6 +45,19 @@ edges | test.cpp:106:51:106:55 | array | test.cpp:115:7:115:11 | array | provenance | | | test.cpp:106:51:106:55 | array | test.cpp:117:18:117:22 | array | provenance | | | test.cpp:106:51:106:55 | array | test.cpp:119:18:119:22 | array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:122:57:122:61 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:123:17:123:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:124:17:124:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:125:17:125:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:126:17:126:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:128:18:128:22 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:131:17:131:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:132:17:132:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:133:17:133:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:134:17:134:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:136:18:136:22 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:139:17:139:21 | **array | provenance | | +| test.cpp:122:57:122:61 | **array | test.cpp:142:18:142:22 | **array | provenance | | | test.cpp:122:57:122:61 | *array | test.cpp:122:57:122:61 | *array | provenance | | | test.cpp:122:57:122:61 | *array | test.cpp:123:17:123:21 | *array | provenance | | | test.cpp:122:57:122:61 | *array | test.cpp:123:17:123:24 | *access to array | provenance | | @@ -69,18 +83,6 @@ edges | test.cpp:122:57:122:61 | *array | test.cpp:139:17:139:24 | *access to array | provenance | | | test.cpp:122:57:122:61 | *array | test.cpp:142:18:142:22 | *array | provenance | | | test.cpp:122:57:122:61 | *array | test.cpp:142:18:142:25 | *access to array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:123:17:123:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:124:17:124:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:125:17:125:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:126:17:126:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:128:18:128:22 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:131:17:131:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:132:17:132:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:133:17:133:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:134:17:134:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:136:18:136:22 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:139:17:139:21 | array | provenance | | -| test.cpp:122:57:122:61 | array | test.cpp:142:18:142:22 | array | provenance | | | test.cpp:146:21:146:23 | *row | test.cpp:146:21:146:23 | *row | provenance | | | test.cpp:146:21:146:23 | *row | test.cpp:147:12:147:14 | *row | provenance | | | test.cpp:146:21:146:23 | *row | test.cpp:147:12:147:14 | *row | provenance | | @@ -97,12 +99,12 @@ edges | test.cpp:146:21:146:23 | row | test.cpp:149:12:149:14 | row | provenance | | | test.cpp:146:21:146:23 | row | test.cpp:150:12:150:14 | row | provenance | | | test.cpp:146:21:146:23 | row | test.cpp:152:12:152:14 | row | provenance | | +| test.cpp:156:58:156:62 | **array | test.cpp:157:14:157:18 | **array | provenance | | +| test.cpp:156:58:156:62 | **array | test.cpp:158:14:158:18 | **array | provenance | | | test.cpp:156:58:156:62 | *array | test.cpp:157:14:157:18 | *array | provenance | | | test.cpp:156:58:156:62 | *array | test.cpp:157:14:157:21 | *access to array | provenance | | | test.cpp:156:58:156:62 | *array | test.cpp:158:14:158:18 | *array | provenance | | | test.cpp:156:58:156:62 | *array | test.cpp:158:14:158:21 | *access to array | provenance | | -| test.cpp:156:58:156:62 | array | test.cpp:157:14:157:18 | array | provenance | | -| test.cpp:156:58:156:62 | array | test.cpp:158:14:158:18 | array | provenance | | | test.cpp:157:14:157:21 | *access to array | test.cpp:146:21:146:23 | *row | provenance | | | test.cpp:157:14:157:21 | *access to array | test.cpp:157:14:157:21 | row_reader output argument | provenance | | | test.cpp:157:14:157:21 | access to array | test.cpp:146:21:146:23 | row | provenance | | @@ -112,6 +114,23 @@ edges | test.cpp:158:14:158:21 | *access to array | test.cpp:146:21:146:23 | *row | provenance | | | test.cpp:158:14:158:21 | access to array | test.cpp:146:21:146:23 | row | provenance | | | test.cpp:158:14:158:21 | access to array | test.cpp:158:14:158:21 | access to array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:161:63:161:67 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:162:22:162:26 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:164:9:164:13 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:168:22:168:26 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:172:22:172:26 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:174:22:174:26 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:178:23:178:27 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:184:22:184:26 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:186:9:186:13 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:188:21:188:25 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:189:21:189:25 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:192:11:192:15 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:194:22:194:26 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:197:22:197:26 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:199:22:199:26 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:201:23:201:27 | **array | provenance | | +| test.cpp:161:63:161:67 | **array | test.cpp:204:11:204:15 | **array | provenance | | | test.cpp:161:63:161:67 | *array | test.cpp:161:63:161:67 | *array | provenance | | | test.cpp:161:63:161:67 | *array | test.cpp:162:20:162:31 | ** ... | provenance | | | test.cpp:161:63:161:67 | *array | test.cpp:162:22:162:26 | *array | provenance | | @@ -145,22 +164,6 @@ edges | test.cpp:161:63:161:67 | *array | test.cpp:201:21:201:32 | ** ... | provenance | | | test.cpp:161:63:161:67 | *array | test.cpp:201:23:201:27 | *array | provenance | | | test.cpp:161:63:161:67 | *array | test.cpp:204:11:204:15 | *array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:162:22:162:26 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:164:9:164:13 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:168:22:168:26 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:172:22:172:26 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:174:22:174:26 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:178:23:178:27 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:184:22:184:26 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:186:9:186:13 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:188:21:188:25 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:189:21:189:25 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:192:11:192:15 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:194:22:194:26 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:197:22:197:26 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:199:22:199:26 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:201:23:201:27 | array | provenance | | -| test.cpp:161:63:161:67 | array | test.cpp:204:11:204:15 | array | provenance | | | test.cpp:208:32:208:34 | ptr | test.cpp:209:17:209:19 | ptr | provenance | | | test.cpp:208:32:208:34 | ptr | test.cpp:211:7:211:9 | ptr | provenance | | | test.cpp:208:32:208:34 | ptr | test.cpp:213:17:213:19 | ptr | provenance | | @@ -169,10 +172,27 @@ edges | test.cpp:208:32:208:34 | ptr | test.cpp:220:20:220:22 | ptr | provenance | | | test.cpp:304:14:304:45 | call to malloc | test.cpp:304:14:304:45 | call to malloc | provenance | | | test.cpp:304:14:304:45 | call to malloc | test.cpp:314:12:314:13 | p2 | provenance | | -| test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:495:7:495:36 | stack_single_dimensional_array | provenance | | -| test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:497:7:497:36 | stack_single_dimensional_array | provenance | | -| test.cpp:495:7:495:36 | stack_single_dimensional_array | test.cpp:6:65:6:69 | array | provenance | | -| test.cpp:497:7:497:36 | stack_single_dimensional_array | test.cpp:19:59:19:63 | array | provenance | | +| test.cpp:372:10:372:12 | definition of buf | test.cpp:376:14:376:16 | *buf | provenance | | +| test.cpp:372:10:372:12 | definition of buf | test.cpp:377:14:377:16 | *buf | provenance | | +| test.cpp:373:13:373:16 | definition of wbuf | test.cpp:373:26:373:26 | {...} | provenance | | +| test.cpp:373:24:373:27 | {...} | test.cpp:376:23:376:26 | *wbuf | provenance | | +| test.cpp:373:24:373:27 | {...} | test.cpp:377:23:377:26 | *wbuf | provenance | | +| test.cpp:373:26:373:26 | {...} | test.cpp:373:24:373:27 | {...} | provenance | | +| test.cpp:420:13:420:16 | definition of wbuf | test.cpp:420:26:420:26 | {...} | provenance | | +| test.cpp:420:24:420:27 | {...} | test.cpp:427:14:427:17 | *wbuf | provenance | | +| test.cpp:420:26:420:26 | {...} | test.cpp:420:24:420:27 | {...} | provenance | | +| test.cpp:446:10:446:13 | definition of buf2 | test.cpp:451:18:451:21 | *buf2 | provenance | | +| test.cpp:469:10:469:13 | definition of buf2 | test.cpp:476:12:476:14 | *buf | provenance | DataFlowFunction | +| test.cpp:469:10:469:13 | definition of buf2 | test.cpp:477:17:477:20 | *buf2 | provenance | | +| test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:492:44:492:44 | 0 | provenance | | +| test.cpp:492:44:492:44 | 0 | test.cpp:492:47:492:47 | 1 | provenance | | +| test.cpp:492:47:492:47 | 1 | test.cpp:492:50:492:50 | {...} | provenance | | +| test.cpp:492:50:492:50 | {...} | test.cpp:495:7:495:36 | *stack_single_dimensional_array | provenance | | +| test.cpp:492:50:492:50 | {...} | test.cpp:497:7:497:36 | *stack_single_dimensional_array | provenance | | +| test.cpp:495:7:495:36 | *stack_single_dimensional_array | test.cpp:6:65:6:69 | *array | provenance | | +| test.cpp:495:7:495:36 | *stack_single_dimensional_array | test.cpp:495:7:495:36 | stack_allocated_single_dimensional_pointer_arithmetic output argument | provenance | | +| test.cpp:495:7:495:36 | stack_allocated_single_dimensional_pointer_arithmetic output argument | test.cpp:497:7:497:36 | *stack_single_dimensional_array | provenance | | +| test.cpp:497:7:497:36 | *stack_single_dimensional_array | test.cpp:19:59:19:63 | *array | provenance | | | test.cpp:515:7:515:57 | call to malloc | test.cpp:515:7:515:57 | call to malloc | provenance | | | test.cpp:515:7:515:57 | call to malloc | test.cpp:522:48:522:78 | single_dimensional_array_malloc | provenance | | | test.cpp:515:7:515:57 | call to malloc | test.cpp:523:42:523:72 | single_dimensional_array_malloc | provenance | | @@ -188,10 +208,10 @@ edges | test.cpp:526:42:526:72 | single_dimensional_array_calloc | test.cpp:78:50:78:54 | array | provenance | | | test.cpp:529:7:529:38 | single_dimensional_array_realloc | test.cpp:92:57:92:61 | array | provenance | | | test.cpp:530:43:530:74 | single_dimensional_array_realloc | test.cpp:106:51:106:55 | array | provenance | | -| test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:533:47:533:47 | 1 | provenance | | -| test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:538:50:538:78 | stack_multi_dimensional_array | provenance | | -| test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:540:7:540:35 | stack_multi_dimensional_array | provenance | | -| test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:542:7:542:35 | stack_multi_dimensional_array | provenance | | +| test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:538:50:538:78 | **stack_multi_dimensional_array | provenance | | +| test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:540:7:540:35 | **stack_multi_dimensional_array | provenance | | +| test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:542:7:542:35 | **stack_multi_dimensional_array | provenance | | +| test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:533:47:533:47 | 1 | provenance | | | test.cpp:533:47:533:47 | 1 | test.cpp:533:50:533:50 | 2 | provenance | | | test.cpp:533:50:533:50 | 2 | test.cpp:533:53:533:53 | {...} | provenance | | | test.cpp:533:53:533:53 | {...} | test.cpp:533:58:533:58 | 4 | provenance | | @@ -200,32 +220,38 @@ edges | test.cpp:533:64:533:64 | {...} | test.cpp:538:50:538:78 | *stack_multi_dimensional_array | provenance | | | test.cpp:533:64:533:64 | {...} | test.cpp:540:7:540:35 | *stack_multi_dimensional_array | provenance | | | test.cpp:533:64:533:64 | {...} | test.cpp:542:7:542:35 | *stack_multi_dimensional_array | provenance | | +| test.cpp:538:50:538:78 | **stack_multi_dimensional_array | test.cpp:122:57:122:61 | **array | provenance | | +| test.cpp:538:50:538:78 | **stack_multi_dimensional_array | test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | provenance | | | test.cpp:538:50:538:78 | *stack_multi_dimensional_array | test.cpp:122:57:122:61 | *array | provenance | | | test.cpp:538:50:538:78 | *stack_multi_dimensional_array | test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | provenance | | +| test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | test.cpp:540:7:540:35 | **stack_multi_dimensional_array | provenance | | | test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | test.cpp:540:7:540:35 | *stack_multi_dimensional_array | provenance | | +| test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | test.cpp:542:7:542:35 | **stack_multi_dimensional_array | provenance | | | test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | test.cpp:542:7:542:35 | *stack_multi_dimensional_array | provenance | | -| test.cpp:538:50:538:78 | stack_multi_dimensional_array | test.cpp:122:57:122:61 | array | provenance | | +| test.cpp:540:7:540:35 | **stack_multi_dimensional_array | test.cpp:161:63:161:67 | **array | provenance | | +| test.cpp:540:7:540:35 | **stack_multi_dimensional_array | test.cpp:540:7:540:35 | stack_allocated_multi_dimensional_pointer_arithmetic output argument | provenance | | | test.cpp:540:7:540:35 | *stack_multi_dimensional_array | test.cpp:161:63:161:67 | *array | provenance | | | test.cpp:540:7:540:35 | *stack_multi_dimensional_array | test.cpp:540:7:540:35 | stack_allocated_multi_dimensional_pointer_arithmetic output argument | provenance | | +| test.cpp:540:7:540:35 | stack_allocated_multi_dimensional_pointer_arithmetic output argument | test.cpp:542:7:542:35 | **stack_multi_dimensional_array | provenance | | | test.cpp:540:7:540:35 | stack_allocated_multi_dimensional_pointer_arithmetic output argument | test.cpp:542:7:542:35 | *stack_multi_dimensional_array | provenance | | -| test.cpp:540:7:540:35 | stack_multi_dimensional_array | test.cpp:161:63:161:67 | array | provenance | | +| test.cpp:542:7:542:35 | **stack_multi_dimensional_array | test.cpp:156:58:156:62 | **array | provenance | | | test.cpp:542:7:542:35 | *stack_multi_dimensional_array | test.cpp:156:58:156:62 | *array | provenance | | -| test.cpp:542:7:542:35 | stack_multi_dimensional_array | test.cpp:156:58:156:62 | array | provenance | | | test.cpp:545:24:545:38 | & ... | test.cpp:208:32:208:34 | ptr | provenance | | nodes -| test.cpp:6:65:6:69 | array | semmle.label | array | -| test.cpp:9:17:9:21 | array | semmle.label | array | -| test.cpp:10:17:10:21 | array | semmle.label | array | -| test.cpp:12:7:12:11 | array | semmle.label | array | -| test.cpp:14:7:14:11 | array | semmle.label | array | -| test.cpp:16:19:16:23 | array | semmle.label | array | -| test.cpp:19:59:19:63 | array | semmle.label | array | -| test.cpp:21:16:21:20 | array | semmle.label | array | -| test.cpp:22:16:22:20 | array | semmle.label | array | -| test.cpp:23:16:23:20 | array | semmle.label | array | -| test.cpp:24:16:24:20 | array | semmle.label | array | -| test.cpp:26:18:26:22 | array | semmle.label | array | -| test.cpp:28:18:28:22 | array | semmle.label | array | +| test.cpp:6:65:6:69 | *array | semmle.label | *array | +| test.cpp:6:65:6:69 | *array | semmle.label | *array | +| test.cpp:9:17:9:21 | *array | semmle.label | *array | +| test.cpp:10:17:10:21 | *array | semmle.label | *array | +| test.cpp:12:7:12:11 | *array | semmle.label | *array | +| test.cpp:14:7:14:11 | *array | semmle.label | *array | +| test.cpp:16:19:16:23 | *array | semmle.label | *array | +| test.cpp:19:59:19:63 | *array | semmle.label | *array | +| test.cpp:21:16:21:20 | *array | semmle.label | *array | +| test.cpp:22:16:22:20 | *array | semmle.label | *array | +| test.cpp:23:16:23:20 | *array | semmle.label | *array | +| test.cpp:24:16:24:20 | *array | semmle.label | *array | +| test.cpp:26:18:26:22 | *array | semmle.label | *array | +| test.cpp:28:18:28:22 | *array | semmle.label | *array | | test.cpp:31:56:31:60 | array | semmle.label | array | | test.cpp:34:17:34:21 | array | semmle.label | array | | test.cpp:36:17:36:21 | array | semmle.label | array | @@ -266,44 +292,45 @@ nodes | test.cpp:115:7:115:11 | array | semmle.label | array | | test.cpp:117:18:117:22 | array | semmle.label | array | | test.cpp:119:18:119:22 | array | semmle.label | array | +| test.cpp:122:57:122:61 | **array | semmle.label | **array | +| test.cpp:122:57:122:61 | **array | semmle.label | **array | | test.cpp:122:57:122:61 | *array | semmle.label | *array | | test.cpp:122:57:122:61 | *array | semmle.label | *array | -| test.cpp:122:57:122:61 | array | semmle.label | array | +| test.cpp:123:17:123:21 | **array | semmle.label | **array | | test.cpp:123:17:123:21 | *array | semmle.label | *array | -| test.cpp:123:17:123:21 | array | semmle.label | array | | test.cpp:123:17:123:24 | *access to array | semmle.label | *access to array | +| test.cpp:124:17:124:21 | **array | semmle.label | **array | | test.cpp:124:17:124:21 | *array | semmle.label | *array | -| test.cpp:124:17:124:21 | array | semmle.label | array | | test.cpp:124:17:124:24 | *access to array | semmle.label | *access to array | +| test.cpp:125:17:125:21 | **array | semmle.label | **array | | test.cpp:125:17:125:21 | *array | semmle.label | *array | -| test.cpp:125:17:125:21 | array | semmle.label | array | | test.cpp:125:17:125:24 | *access to array | semmle.label | *access to array | +| test.cpp:126:17:126:21 | **array | semmle.label | **array | | test.cpp:126:17:126:21 | *array | semmle.label | *array | -| test.cpp:126:17:126:21 | array | semmle.label | array | | test.cpp:126:17:126:24 | *access to array | semmle.label | *access to array | +| test.cpp:128:18:128:22 | **array | semmle.label | **array | | test.cpp:128:18:128:22 | *array | semmle.label | *array | -| test.cpp:128:18:128:22 | array | semmle.label | array | | test.cpp:128:18:128:25 | *access to array | semmle.label | *access to array | +| test.cpp:131:17:131:21 | **array | semmle.label | **array | | test.cpp:131:17:131:21 | *array | semmle.label | *array | -| test.cpp:131:17:131:21 | array | semmle.label | array | | test.cpp:131:17:131:24 | *access to array | semmle.label | *access to array | +| test.cpp:132:17:132:21 | **array | semmle.label | **array | | test.cpp:132:17:132:21 | *array | semmle.label | *array | -| test.cpp:132:17:132:21 | array | semmle.label | array | | test.cpp:132:17:132:24 | *access to array | semmle.label | *access to array | +| test.cpp:133:17:133:21 | **array | semmle.label | **array | | test.cpp:133:17:133:21 | *array | semmle.label | *array | -| test.cpp:133:17:133:21 | array | semmle.label | array | | test.cpp:133:17:133:24 | *access to array | semmle.label | *access to array | +| test.cpp:134:17:134:21 | **array | semmle.label | **array | | test.cpp:134:17:134:21 | *array | semmle.label | *array | -| test.cpp:134:17:134:21 | array | semmle.label | array | | test.cpp:134:17:134:24 | *access to array | semmle.label | *access to array | +| test.cpp:136:18:136:22 | **array | semmle.label | **array | | test.cpp:136:18:136:22 | *array | semmle.label | *array | -| test.cpp:136:18:136:22 | array | semmle.label | array | | test.cpp:136:18:136:25 | *access to array | semmle.label | *access to array | +| test.cpp:139:17:139:21 | **array | semmle.label | **array | | test.cpp:139:17:139:21 | *array | semmle.label | *array | -| test.cpp:139:17:139:21 | array | semmle.label | array | | test.cpp:139:17:139:24 | *access to array | semmle.label | *access to array | +| test.cpp:142:18:142:22 | **array | semmle.label | **array | | test.cpp:142:18:142:22 | *array | semmle.label | *array | -| test.cpp:142:18:142:22 | array | semmle.label | array | | test.cpp:142:18:142:25 | *access to array | semmle.label | *access to array | | test.cpp:146:21:146:23 | *row | semmle.label | *row | | test.cpp:146:21:146:23 | *row | semmle.label | *row | @@ -319,70 +346,71 @@ nodes | test.cpp:150:12:150:14 | row | semmle.label | row | | test.cpp:152:12:152:14 | *row | semmle.label | *row | | test.cpp:152:12:152:14 | row | semmle.label | row | +| test.cpp:156:58:156:62 | **array | semmle.label | **array | | test.cpp:156:58:156:62 | *array | semmle.label | *array | -| test.cpp:156:58:156:62 | array | semmle.label | array | +| test.cpp:157:14:157:18 | **array | semmle.label | **array | | test.cpp:157:14:157:18 | *array | semmle.label | *array | -| test.cpp:157:14:157:18 | array | semmle.label | array | | test.cpp:157:14:157:21 | *access to array | semmle.label | *access to array | | test.cpp:157:14:157:21 | access to array | semmle.label | access to array | | test.cpp:157:14:157:21 | access to array | semmle.label | access to array | | test.cpp:157:14:157:21 | row_reader output argument | semmle.label | row_reader output argument | +| test.cpp:158:14:158:18 | **array | semmle.label | **array | | test.cpp:158:14:158:18 | *array | semmle.label | *array | -| test.cpp:158:14:158:18 | array | semmle.label | array | | test.cpp:158:14:158:21 | *access to array | semmle.label | *access to array | | test.cpp:158:14:158:21 | access to array | semmle.label | access to array | | test.cpp:158:14:158:21 | access to array | semmle.label | access to array | +| test.cpp:161:63:161:67 | **array | semmle.label | **array | +| test.cpp:161:63:161:67 | **array | semmle.label | **array | | test.cpp:161:63:161:67 | *array | semmle.label | *array | | test.cpp:161:63:161:67 | *array | semmle.label | *array | -| test.cpp:161:63:161:67 | array | semmle.label | array | | test.cpp:162:20:162:31 | ** ... | semmle.label | ** ... | +| test.cpp:162:22:162:26 | **array | semmle.label | **array | | test.cpp:162:22:162:26 | *array | semmle.label | *array | -| test.cpp:162:22:162:26 | array | semmle.label | array | +| test.cpp:164:9:164:13 | **array | semmle.label | **array | | test.cpp:164:9:164:13 | *array | semmle.label | *array | -| test.cpp:164:9:164:13 | array | semmle.label | array | | test.cpp:168:20:168:31 | ** ... | semmle.label | ** ... | +| test.cpp:168:22:168:26 | **array | semmle.label | **array | | test.cpp:168:22:168:26 | *array | semmle.label | *array | -| test.cpp:168:22:168:26 | array | semmle.label | array | | test.cpp:170:9:170:14 | ** ... | semmle.label | ** ... | | test.cpp:172:20:172:31 | ** ... | semmle.label | ** ... | +| test.cpp:172:22:172:26 | **array | semmle.label | **array | | test.cpp:172:22:172:26 | *array | semmle.label | *array | -| test.cpp:172:22:172:26 | array | semmle.label | array | | test.cpp:173:20:173:25 | ** ... | semmle.label | ** ... | | test.cpp:174:20:174:31 | ** ... | semmle.label | ** ... | +| test.cpp:174:22:174:26 | **array | semmle.label | **array | | test.cpp:174:22:174:26 | *array | semmle.label | *array | -| test.cpp:174:22:174:26 | array | semmle.label | array | | test.cpp:176:20:176:25 | ** ... | semmle.label | ** ... | | test.cpp:178:21:178:32 | ** ... | semmle.label | ** ... | +| test.cpp:178:23:178:27 | **array | semmle.label | **array | | test.cpp:178:23:178:27 | *array | semmle.label | *array | -| test.cpp:178:23:178:27 | array | semmle.label | array | | test.cpp:181:9:181:14 | ** ... | semmle.label | ** ... | | test.cpp:184:20:184:31 | ** ... | semmle.label | ** ... | +| test.cpp:184:22:184:26 | **array | semmle.label | **array | | test.cpp:184:22:184:26 | *array | semmle.label | *array | -| test.cpp:184:22:184:26 | array | semmle.label | array | +| test.cpp:186:9:186:13 | **array | semmle.label | **array | | test.cpp:186:9:186:13 | *array | semmle.label | *array | -| test.cpp:186:9:186:13 | array | semmle.label | array | | test.cpp:188:19:188:30 | ** ... | semmle.label | ** ... | +| test.cpp:188:21:188:25 | **array | semmle.label | **array | | test.cpp:188:21:188:25 | *array | semmle.label | *array | -| test.cpp:188:21:188:25 | array | semmle.label | array | | test.cpp:189:19:189:30 | ** ... | semmle.label | ** ... | +| test.cpp:189:21:189:25 | **array | semmle.label | **array | | test.cpp:189:21:189:25 | *array | semmle.label | *array | -| test.cpp:189:21:189:25 | array | semmle.label | array | | test.cpp:192:9:192:20 | ** ... | semmle.label | ** ... | +| test.cpp:192:11:192:15 | **array | semmle.label | **array | | test.cpp:192:11:192:15 | *array | semmle.label | *array | -| test.cpp:192:11:192:15 | array | semmle.label | array | | test.cpp:194:20:194:31 | ** ... | semmle.label | ** ... | +| test.cpp:194:22:194:26 | **array | semmle.label | **array | | test.cpp:194:22:194:26 | *array | semmle.label | *array | -| test.cpp:194:22:194:26 | array | semmle.label | array | | test.cpp:197:20:197:31 | ** ... | semmle.label | ** ... | +| test.cpp:197:22:197:26 | **array | semmle.label | **array | | test.cpp:197:22:197:26 | *array | semmle.label | *array | -| test.cpp:197:22:197:26 | array | semmle.label | array | +| test.cpp:199:22:199:26 | **array | semmle.label | **array | | test.cpp:199:22:199:26 | *array | semmle.label | *array | -| test.cpp:199:22:199:26 | array | semmle.label | array | | test.cpp:201:21:201:32 | ** ... | semmle.label | ** ... | +| test.cpp:201:23:201:27 | **array | semmle.label | **array | | test.cpp:201:23:201:27 | *array | semmle.label | *array | -| test.cpp:201:23:201:27 | array | semmle.label | array | +| test.cpp:204:11:204:15 | **array | semmle.label | **array | | test.cpp:204:11:204:15 | *array | semmle.label | *array | -| test.cpp:204:11:204:15 | array | semmle.label | array | | test.cpp:208:32:208:34 | ptr | semmle.label | ptr | | test.cpp:209:17:209:19 | ptr | semmle.label | ptr | | test.cpp:211:7:211:9 | ptr | semmle.label | ptr | @@ -393,9 +421,30 @@ nodes | test.cpp:304:14:304:45 | call to malloc | semmle.label | call to malloc | | test.cpp:304:14:304:45 | call to malloc | semmle.label | call to malloc | | test.cpp:314:12:314:13 | p2 | semmle.label | p2 | +| test.cpp:372:10:372:12 | definition of buf | semmle.label | definition of buf | +| test.cpp:373:13:373:16 | definition of wbuf | semmle.label | definition of wbuf | +| test.cpp:373:24:373:27 | {...} | semmle.label | {...} | +| test.cpp:373:26:373:26 | {...} | semmle.label | {...} | +| test.cpp:376:14:376:16 | *buf | semmle.label | *buf | +| test.cpp:376:23:376:26 | *wbuf | semmle.label | *wbuf | +| test.cpp:377:14:377:16 | *buf | semmle.label | *buf | +| test.cpp:377:23:377:26 | *wbuf | semmle.label | *wbuf | +| test.cpp:420:13:420:16 | definition of wbuf | semmle.label | definition of wbuf | +| test.cpp:420:24:420:27 | {...} | semmle.label | {...} | +| test.cpp:420:26:420:26 | {...} | semmle.label | {...} | +| test.cpp:427:14:427:17 | *wbuf | semmle.label | *wbuf | +| test.cpp:446:10:446:13 | definition of buf2 | semmle.label | definition of buf2 | +| test.cpp:451:18:451:21 | *buf2 | semmle.label | *buf2 | +| test.cpp:469:10:469:13 | definition of buf2 | semmle.label | definition of buf2 | +| test.cpp:476:12:476:14 | *buf | semmle.label | *buf | +| test.cpp:477:17:477:20 | *buf2 | semmle.label | *buf2 | | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | semmle.label | definition of stack_single_dimensional_array | -| test.cpp:495:7:495:36 | stack_single_dimensional_array | semmle.label | stack_single_dimensional_array | -| test.cpp:497:7:497:36 | stack_single_dimensional_array | semmle.label | stack_single_dimensional_array | +| test.cpp:492:44:492:44 | 0 | semmle.label | 0 | +| test.cpp:492:47:492:47 | 1 | semmle.label | 1 | +| test.cpp:492:50:492:50 | {...} | semmle.label | {...} | +| test.cpp:495:7:495:36 | *stack_single_dimensional_array | semmle.label | *stack_single_dimensional_array | +| test.cpp:495:7:495:36 | stack_allocated_single_dimensional_pointer_arithmetic output argument | semmle.label | stack_allocated_single_dimensional_pointer_arithmetic output argument | +| test.cpp:497:7:497:36 | *stack_single_dimensional_array | semmle.label | *stack_single_dimensional_array | | test.cpp:515:7:515:57 | call to malloc | semmle.label | call to malloc | | test.cpp:515:7:515:57 | call to malloc | semmle.label | call to malloc | | test.cpp:517:7:517:56 | call to calloc | semmle.label | call to calloc | @@ -416,24 +465,29 @@ nodes | test.cpp:533:58:533:58 | 4 | semmle.label | 4 | | test.cpp:533:61:533:61 | 5 | semmle.label | 5 | | test.cpp:533:64:533:64 | {...} | semmle.label | {...} | +| test.cpp:538:50:538:78 | **stack_multi_dimensional_array | semmle.label | **stack_multi_dimensional_array | | test.cpp:538:50:538:78 | *stack_multi_dimensional_array | semmle.label | *stack_multi_dimensional_array | | test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | semmle.label | stack_allocated_multi_dimensional_array_access output argument | -| test.cpp:538:50:538:78 | stack_multi_dimensional_array | semmle.label | stack_multi_dimensional_array | +| test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | semmle.label | stack_allocated_multi_dimensional_array_access output argument | +| test.cpp:540:7:540:35 | **stack_multi_dimensional_array | semmle.label | **stack_multi_dimensional_array | | test.cpp:540:7:540:35 | *stack_multi_dimensional_array | semmle.label | *stack_multi_dimensional_array | | test.cpp:540:7:540:35 | stack_allocated_multi_dimensional_pointer_arithmetic output argument | semmle.label | stack_allocated_multi_dimensional_pointer_arithmetic output argument | -| test.cpp:540:7:540:35 | stack_multi_dimensional_array | semmle.label | stack_multi_dimensional_array | +| test.cpp:540:7:540:35 | stack_allocated_multi_dimensional_pointer_arithmetic output argument | semmle.label | stack_allocated_multi_dimensional_pointer_arithmetic output argument | +| test.cpp:542:7:542:35 | **stack_multi_dimensional_array | semmle.label | **stack_multi_dimensional_array | | test.cpp:542:7:542:35 | *stack_multi_dimensional_array | semmle.label | *stack_multi_dimensional_array | -| test.cpp:542:7:542:35 | stack_multi_dimensional_array | semmle.label | stack_multi_dimensional_array | | test.cpp:545:24:545:38 | & ... | semmle.label | & ... | subpaths | test.cpp:157:14:157:21 | *access to array | test.cpp:146:21:146:23 | *row | test.cpp:146:21:146:23 | *row | test.cpp:157:14:157:21 | row_reader output argument | +| test.cpp:495:7:495:36 | *stack_single_dimensional_array | test.cpp:6:65:6:69 | *array | test.cpp:6:65:6:69 | *array | test.cpp:495:7:495:36 | stack_allocated_single_dimensional_pointer_arithmetic output argument | +| test.cpp:538:50:538:78 | **stack_multi_dimensional_array | test.cpp:122:57:122:61 | **array | test.cpp:122:57:122:61 | **array | test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | | test.cpp:538:50:538:78 | *stack_multi_dimensional_array | test.cpp:122:57:122:61 | *array | test.cpp:122:57:122:61 | *array | test.cpp:538:50:538:78 | stack_allocated_multi_dimensional_array_access output argument | +| test.cpp:540:7:540:35 | **stack_multi_dimensional_array | test.cpp:161:63:161:67 | **array | test.cpp:161:63:161:67 | **array | test.cpp:540:7:540:35 | stack_allocated_multi_dimensional_pointer_arithmetic output argument | | test.cpp:540:7:540:35 | *stack_multi_dimensional_array | test.cpp:161:63:161:67 | *array | test.cpp:161:63:161:67 | *array | test.cpp:540:7:540:35 | stack_allocated_multi_dimensional_pointer_arithmetic output argument | #select -| test.cpp:14:7:15:7 | ... + ... | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:14:7:14:11 | array | This pointer accesses element at index 4 while the underlying object has length 3. | -| test.cpp:16:19:16:27 | ... - ... | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:16:19:16:23 | array | This pointer accesses element at index -1 while the underlying object has length 3. | -| test.cpp:26:18:26:25 | access to array | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:26:18:26:22 | array | This pointer accesses element at index 4 while the underlying object has length 3. | -| test.cpp:28:18:28:26 | access to array | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:28:18:28:22 | array | This pointer accesses element at index -1 while the underlying object has length 3. | +| test.cpp:14:7:15:7 | ... + ... | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:14:7:14:11 | *array | This pointer accesses element at index 4 while the underlying object has length 3. | +| test.cpp:16:19:16:27 | ... - ... | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:16:19:16:23 | *array | This pointer accesses element at index -1 while the underlying object has length 3. | +| test.cpp:26:18:26:25 | access to array | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:26:18:26:22 | *array | This pointer accesses element at index 4 while the underlying object has length 3. | +| test.cpp:28:18:28:26 | access to array | test.cpp:492:7:492:36 | definition of stack_single_dimensional_array | test.cpp:28:18:28:22 | *array | This pointer accesses element at index -1 while the underlying object has length 3. | | test.cpp:36:17:36:25 | ... + ... | test.cpp:515:7:515:57 | call to malloc | test.cpp:36:17:36:21 | array | This pointer accesses element at index 2 while the underlying object has length 1. | | test.cpp:38:17:38:25 | ... + ... | test.cpp:515:7:515:57 | call to malloc | test.cpp:38:17:38:21 | array | This pointer accesses element at index 3 while the underlying object has length 1. | | test.cpp:40:19:40:27 | ... + ... | test.cpp:515:7:515:57 | call to malloc | test.cpp:40:19:40:23 | array | This pointer accesses element at index 4 while the underlying object has length 1. | @@ -457,26 +511,20 @@ subpaths | test.cpp:128:18:128:28 | access to array | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:128:18:128:25 | *access to array | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:136:18:136:28 | access to array | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:136:18:136:25 | *access to array | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:136:18:136:28 | access to array | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:136:18:136:25 | *access to array | This pointer accesses element at index 4 while the underlying object has length 3. | +| test.cpp:142:18:142:25 | access to array | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:142:18:142:22 | **array | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:142:18:142:25 | access to array | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:142:18:142:22 | *array | This pointer accesses element at index 3 while the underlying object has length 2. | -| test.cpp:142:18:142:25 | access to array | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:142:18:142:22 | array | This pointer accesses element at index 3 while the underlying object has length 2. | +| test.cpp:142:18:142:25 | access to array | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:142:18:142:22 | **array | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:142:18:142:25 | access to array | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:142:18:142:22 | *array | This pointer accesses element at index 3 while the underlying object has length 2. | -| test.cpp:142:18:142:25 | access to array | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:142:18:142:22 | array | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:149:12:149:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:149:12:149:14 | *row | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:149:12:149:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:149:12:149:14 | row | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:150:12:150:17 | access to array | test.cpp:157:14:157:21 | access to array | test.cpp:150:12:150:14 | *row | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:150:12:150:17 | access to array | test.cpp:157:14:157:21 | access to array | test.cpp:150:12:150:14 | row | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:150:12:150:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:150:12:150:14 | *row | This pointer accesses element at index 4 while the underlying object has length 2. | -| test.cpp:150:12:150:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:150:12:150:14 | *row | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:150:12:150:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:150:12:150:14 | row | This pointer accesses element at index 4 while the underlying object has length 2. | -| test.cpp:150:12:150:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:150:12:150:14 | row | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:152:12:152:17 | access to array | test.cpp:157:14:157:21 | access to array | test.cpp:152:12:152:14 | *row | This pointer accesses element at index 4 while the underlying object has length 2. | -| test.cpp:152:12:152:17 | access to array | test.cpp:157:14:157:21 | access to array | test.cpp:152:12:152:14 | *row | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:152:12:152:17 | access to array | test.cpp:157:14:157:21 | access to array | test.cpp:152:12:152:14 | row | This pointer accesses element at index 4 while the underlying object has length 2. | -| test.cpp:152:12:152:17 | access to array | test.cpp:157:14:157:21 | access to array | test.cpp:152:12:152:14 | row | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:152:12:152:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:152:12:152:14 | *row | This pointer accesses element at index 5 while the underlying object has length 2. | -| test.cpp:152:12:152:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:152:12:152:14 | *row | This pointer accesses element at index 5 while the underlying object has length 3. | | test.cpp:152:12:152:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:152:12:152:14 | row | This pointer accesses element at index 5 while the underlying object has length 2. | -| test.cpp:152:12:152:17 | access to array | test.cpp:158:14:158:21 | access to array | test.cpp:152:12:152:14 | row | This pointer accesses element at index 5 while the underlying object has length 3. | | test.cpp:152:12:152:17 | access to array | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:152:12:152:14 | *row | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:152:12:152:17 | access to array | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:152:12:152:14 | row | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:152:12:152:17 | access to array | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:152:12:152:14 | *row | This pointer accesses element at index 4 while the underlying object has length 3. | @@ -487,13 +535,13 @@ subpaths | test.cpp:181:9:181:18 | ... + ... | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:181:9:181:14 | ** ... | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:194:20:194:35 | ... + ... | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:194:20:194:31 | ** ... | This pointer accesses element at index 4 while the underlying object has length 3. | | test.cpp:194:20:194:35 | ... + ... | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:194:20:194:31 | ** ... | This pointer accesses element at index 4 while the underlying object has length 3. | +| test.cpp:201:23:201:31 | ... + ... | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:201:23:201:27 | **array | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:201:23:201:31 | ... + ... | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:201:23:201:27 | *array | This pointer accesses element at index 3 while the underlying object has length 2. | -| test.cpp:201:23:201:31 | ... + ... | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:201:23:201:27 | array | This pointer accesses element at index 3 while the underlying object has length 2. | +| test.cpp:201:23:201:31 | ... + ... | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:201:23:201:27 | **array | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:201:23:201:31 | ... + ... | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:201:23:201:27 | *array | This pointer accesses element at index 3 while the underlying object has length 2. | -| test.cpp:201:23:201:31 | ... + ... | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:201:23:201:27 | array | This pointer accesses element at index 3 while the underlying object has length 2. | +| test.cpp:204:11:204:19 | ... + ... | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:204:11:204:15 | **array | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:204:11:204:19 | ... + ... | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:204:11:204:15 | *array | This pointer accesses element at index 3 while the underlying object has length 2. | -| test.cpp:204:11:204:19 | ... + ... | test.cpp:533:7:533:35 | *definition of stack_multi_dimensional_array | test.cpp:204:11:204:15 | array | This pointer accesses element at index 3 while the underlying object has length 2. | +| test.cpp:204:11:204:19 | ... + ... | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:204:11:204:15 | **array | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:204:11:204:19 | ... + ... | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:204:11:204:15 | *array | This pointer accesses element at index 3 while the underlying object has length 2. | -| test.cpp:204:11:204:19 | ... + ... | test.cpp:533:7:533:35 | definition of stack_multi_dimensional_array | test.cpp:204:11:204:15 | array | This pointer accesses element at index 3 while the underlying object has length 2. | | test.cpp:218:19:218:24 | access to array | test.cpp:545:24:545:38 | & ... | test.cpp:218:19:218:21 | ptr | This pointer accesses element at index 2 while the underlying object has length 1. | | test.cpp:220:20:220:26 | ... + ... | test.cpp:545:24:545:38 | & ... | test.cpp:220:20:220:22 | ptr | This pointer accesses element at index 2 while the underlying object has length 1. |