Skip to content

Commit 46e29a5

Browse files
committed
C++: Accept incorrect test changes so we can generate a stats file
1 parent 6a3ec19 commit 46e29a5

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-193/InvalidPointerDeref.expected

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,20 @@ edges
6464
| test.cpp:271:14:271:21 | ... + ... | test.cpp:271:14:271:21 | ... + ... |
6565
| test.cpp:271:14:271:21 | ... + ... | test.cpp:274:5:274:10 | ... = ... |
6666
| test.cpp:271:14:271:21 | ... + ... | test.cpp:274:5:274:10 | ... = ... |
67+
| test.cpp:313:14:313:27 | new[] | test.cpp:314:15:314:23 | ... + ... |
68+
| test.cpp:313:14:313:27 | new[] | test.cpp:314:15:314:23 | ... + ... |
69+
| test.cpp:313:14:313:27 | new[] | test.cpp:319:5:319:21 | ... = ... |
70+
| test.cpp:314:15:314:23 | ... + ... | test.cpp:314:15:314:23 | ... + ... |
71+
| test.cpp:314:15:314:23 | ... + ... | test.cpp:319:5:319:21 | ... = ... |
72+
| test.cpp:325:14:325:27 | new[] | test.cpp:326:15:326:23 | ... + ... |
73+
| test.cpp:325:14:325:27 | new[] | test.cpp:326:15:326:23 | ... + ... |
74+
| test.cpp:325:14:325:27 | new[] | test.cpp:333:5:333:21 | ... = ... |
75+
| test.cpp:325:14:325:27 | new[] | test.cpp:341:5:341:21 | ... = ... |
76+
| test.cpp:325:14:325:27 | new[] | test.cpp:342:5:342:21 | ... = ... |
77+
| test.cpp:326:15:326:23 | ... + ... | test.cpp:326:15:326:23 | ... + ... |
78+
| test.cpp:326:15:326:23 | ... + ... | test.cpp:333:5:333:21 | ... = ... |
79+
| test.cpp:326:15:326:23 | ... + ... | test.cpp:341:5:341:21 | ... = ... |
80+
| test.cpp:326:15:326:23 | ... + ... | test.cpp:342:5:342:21 | ... = ... |
6781
| test.cpp:355:14:355:27 | new[] | test.cpp:356:15:356:23 | ... + ... |
6882
| test.cpp:355:14:355:27 | new[] | test.cpp:356:15:356:23 | ... + ... |
6983
| test.cpp:355:14:355:27 | new[] | test.cpp:357:24:357:30 | ... + ... |
@@ -226,6 +240,16 @@ nodes
226240
| test.cpp:271:14:271:21 | ... + ... | semmle.label | ... + ... |
227241
| test.cpp:271:14:271:21 | ... + ... | semmle.label | ... + ... |
228242
| test.cpp:274:5:274:10 | ... = ... | semmle.label | ... = ... |
243+
| test.cpp:313:14:313:27 | new[] | semmle.label | new[] |
244+
| test.cpp:314:15:314:23 | ... + ... | semmle.label | ... + ... |
245+
| test.cpp:314:15:314:23 | ... + ... | semmle.label | ... + ... |
246+
| test.cpp:319:5:319:21 | ... = ... | semmle.label | ... = ... |
247+
| test.cpp:325:14:325:27 | new[] | semmle.label | new[] |
248+
| test.cpp:326:15:326:23 | ... + ... | semmle.label | ... + ... |
249+
| test.cpp:326:15:326:23 | ... + ... | semmle.label | ... + ... |
250+
| test.cpp:333:5:333:21 | ... = ... | semmle.label | ... = ... |
251+
| test.cpp:341:5:341:21 | ... = ... | semmle.label | ... = ... |
252+
| test.cpp:342:5:342:21 | ... = ... | semmle.label | ... = ... |
229253
| test.cpp:355:14:355:27 | new[] | semmle.label | new[] |
230254
| test.cpp:356:15:356:23 | ... + ... | semmle.label | ... + ... |
231255
| test.cpp:356:15:356:23 | ... + ... | semmle.label | ... + ... |
@@ -325,6 +349,10 @@ subpaths
325349
| test.cpp:254:9:254:16 | ... = ... | test.cpp:248:13:248:36 | call to realloc | test.cpp:254:9:254:16 | ... = ... | This write might be out of bounds, as the pointer might be equal to $@ + $@. | test.cpp:248:13:248:36 | call to realloc | call to realloc | test.cpp:254:11:254:11 | i | i |
326350
| test.cpp:264:13:264:14 | * ... | test.cpp:260:13:260:24 | new[] | test.cpp:264:13:264:14 | * ... | This read might be out of bounds, as the pointer might be equal to $@ + $@. | test.cpp:260:13:260:24 | new[] | new[] | test.cpp:261:19:261:21 | len | len |
327351
| test.cpp:274:5:274:10 | ... = ... | test.cpp:270:13:270:24 | new[] | test.cpp:274:5:274:10 | ... = ... | This write might be out of bounds, as the pointer might be equal to $@ + $@. | test.cpp:270:13:270:24 | new[] | new[] | test.cpp:271:19:271:21 | len | len |
352+
| test.cpp:319:5:319:21 | ... = ... | test.cpp:313:14:313:27 | new[] | test.cpp:319:5:319:21 | ... = ... | This write might be out of bounds, as the pointer might be equal to $@ + $@. | test.cpp:313:14:313:27 | new[] | new[] | test.cpp:314:20:314:23 | size | size |
353+
| test.cpp:333:5:333:21 | ... = ... | test.cpp:325:14:325:27 | new[] | test.cpp:333:5:333:21 | ... = ... | This write might be out of bounds, as the pointer might be equal to $@ + $@. | test.cpp:325:14:325:27 | new[] | new[] | test.cpp:326:20:326:23 | size | size |
354+
| test.cpp:341:5:341:21 | ... = ... | test.cpp:325:14:325:27 | new[] | test.cpp:341:5:341:21 | ... = ... | This write might be out of bounds, as the pointer might be equal to $@ + $@. | test.cpp:325:14:325:27 | new[] | new[] | test.cpp:326:20:326:23 | size | size |
355+
| test.cpp:342:5:342:21 | ... = ... | test.cpp:325:14:325:27 | new[] | test.cpp:342:5:342:21 | ... = ... | This write might be out of bounds, as the pointer might be equal to $@ + $@. | test.cpp:325:14:325:27 | new[] | new[] | test.cpp:326:20:326:23 | size | size |
328356
| test.cpp:358:14:358:26 | end_plus_one indirection | test.cpp:355:14:355:27 | new[] | test.cpp:358:14:358:26 | end_plus_one indirection | This read might be out of bounds, as the pointer might be equal to $@ + $@ + 1. | test.cpp:355:14:355:27 | new[] | new[] | test.cpp:356:20:356:23 | size | size |
329357
| test.cpp:359:14:359:32 | ... + ... indirection | test.cpp:355:14:355:27 | new[] | test.cpp:359:14:359:32 | ... + ... indirection | This read might be out of bounds, as the pointer might be equal to $@ + $@ + 2. | test.cpp:355:14:355:27 | new[] | new[] | test.cpp:356:20:356:23 | size | size |
330358
| test.cpp:384:13:384:16 | end indirection | test.cpp:377:14:377:27 | new[] | test.cpp:384:13:384:16 | end indirection | This read might be out of bounds, as the pointer might be equal to $@ + $@. | test.cpp:377:14:377:27 | new[] | new[] | test.cpp:378:20:378:23 | size | size |

0 commit comments

Comments
 (0)