Skip to content

Commit 1c73d43

Browse files
committed
C++: Accept more test changes.
1 parent e648058 commit 1c73d43

File tree

2 files changed

+9
-27
lines changed

2 files changed

+9
-27
lines changed

cpp/ql/test/experimental/query-tests/Security/CWE/CWE-193/array-access/ArrayAccessProductFlow.expected

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ edges
33
| test.cpp:4:17:4:22 | call to malloc | test.cpp:10:9:10:11 | arr |
44
| test.cpp:19:9:19:16 | mk_array indirection [p] | test.cpp:28:19:28:26 | call to mk_array [p] |
55
| test.cpp:19:9:19:16 | mk_array indirection [p] | test.cpp:50:18:50:25 | call to mk_array [p] |
6-
| test.cpp:21:5:21:24 | ... = ... | test.cpp:21:9:21:9 | arr indirection [post update] [p] |
7-
| test.cpp:21:9:21:9 | arr indirection [post update] [p] | test.cpp:22:5:22:7 | arr indirection [p] |
6+
| test.cpp:21:5:21:7 | arr indirection [post update] [p] | test.cpp:22:5:22:7 | arr indirection [p] |
7+
| test.cpp:21:5:21:24 | ... = ... | test.cpp:21:5:21:7 | arr indirection [post update] [p] |
88
| test.cpp:21:13:21:18 | call to malloc | test.cpp:21:5:21:24 | ... = ... |
99
| test.cpp:22:5:22:7 | arr indirection [p] | test.cpp:19:9:19:16 | mk_array indirection [p] |
1010
| test.cpp:28:19:28:26 | call to mk_array [p] | test.cpp:31:9:31:11 | arr indirection [p] |
@@ -16,17 +16,17 @@ edges
1616
| test.cpp:41:9:41:11 | arr indirection [p] | test.cpp:41:13:41:13 | p |
1717
| test.cpp:45:9:45:11 | arr indirection [p] | test.cpp:45:13:45:13 | p |
1818
| test.cpp:50:18:50:25 | call to mk_array [p] | test.cpp:39:27:39:29 | arr [p] |
19-
| test.cpp:55:5:55:24 | ... = ... | test.cpp:55:9:55:9 | arr indirection [post update] [p] |
20-
| test.cpp:55:9:55:9 | arr indirection [post update] [p] | test.cpp:56:5:56:7 | arr indirection [p] |
19+
| test.cpp:55:5:55:7 | arr indirection [post update] [p] | test.cpp:56:5:56:7 | arr indirection [p] |
20+
| test.cpp:55:5:55:24 | ... = ... | test.cpp:55:5:55:7 | arr indirection [post update] [p] |
2121
| test.cpp:55:13:55:18 | call to malloc | test.cpp:55:5:55:24 | ... = ... |
2222
| test.cpp:56:5:56:7 | arr indirection [p] | test.cpp:59:9:59:11 | arr indirection [p] |
2323
| test.cpp:56:5:56:7 | arr indirection [p] | test.cpp:63:9:63:11 | arr indirection [p] |
2424
| test.cpp:59:9:59:11 | arr indirection [p] | test.cpp:59:13:59:13 | p |
2525
| test.cpp:63:9:63:11 | arr indirection [p] | test.cpp:63:13:63:13 | p |
2626
| test.cpp:67:10:67:19 | mk_array_p indirection [p] | test.cpp:76:20:76:29 | call to mk_array_p indirection [p] |
2727
| test.cpp:67:10:67:19 | mk_array_p indirection [p] | test.cpp:98:18:98:27 | call to mk_array_p indirection [p] |
28-
| test.cpp:69:5:69:25 | ... = ... | test.cpp:69:10:69:10 | arr indirection [post update] [p] |
29-
| test.cpp:69:10:69:10 | arr indirection [post update] [p] | test.cpp:70:5:70:7 | arr indirection [p] |
28+
| test.cpp:69:5:69:7 | arr indirection [post update] [p] | test.cpp:70:5:70:7 | arr indirection [p] |
29+
| test.cpp:69:5:69:25 | ... = ... | test.cpp:69:5:69:7 | arr indirection [post update] [p] |
3030
| test.cpp:69:14:69:19 | call to malloc | test.cpp:69:5:69:25 | ... = ... |
3131
| test.cpp:70:5:70:7 | arr indirection [p] | test.cpp:67:10:67:19 | mk_array_p indirection [p] |
3232
| test.cpp:76:20:76:29 | call to mk_array_p indirection [p] | test.cpp:79:9:79:11 | arr indirection [p] |
@@ -43,8 +43,8 @@ nodes
4343
| test.cpp:6:9:6:11 | arr | semmle.label | arr |
4444
| test.cpp:10:9:10:11 | arr | semmle.label | arr |
4545
| test.cpp:19:9:19:16 | mk_array indirection [p] | semmle.label | mk_array indirection [p] |
46+
| test.cpp:21:5:21:7 | arr indirection [post update] [p] | semmle.label | arr indirection [post update] [p] |
4647
| test.cpp:21:5:21:24 | ... = ... | semmle.label | ... = ... |
47-
| test.cpp:21:9:21:9 | arr indirection [post update] [p] | semmle.label | arr indirection [post update] [p] |
4848
| test.cpp:21:13:21:18 | call to malloc | semmle.label | call to malloc |
4949
| test.cpp:22:5:22:7 | arr indirection [p] | semmle.label | arr indirection [p] |
5050
| test.cpp:28:19:28:26 | call to mk_array [p] | semmle.label | call to mk_array [p] |
@@ -58,17 +58,17 @@ nodes
5858
| test.cpp:45:9:45:11 | arr indirection [p] | semmle.label | arr indirection [p] |
5959
| test.cpp:45:13:45:13 | p | semmle.label | p |
6060
| test.cpp:50:18:50:25 | call to mk_array [p] | semmle.label | call to mk_array [p] |
61+
| test.cpp:55:5:55:7 | arr indirection [post update] [p] | semmle.label | arr indirection [post update] [p] |
6162
| test.cpp:55:5:55:24 | ... = ... | semmle.label | ... = ... |
62-
| test.cpp:55:9:55:9 | arr indirection [post update] [p] | semmle.label | arr indirection [post update] [p] |
6363
| test.cpp:55:13:55:18 | call to malloc | semmle.label | call to malloc |
6464
| test.cpp:56:5:56:7 | arr indirection [p] | semmle.label | arr indirection [p] |
6565
| test.cpp:59:9:59:11 | arr indirection [p] | semmle.label | arr indirection [p] |
6666
| test.cpp:59:13:59:13 | p | semmle.label | p |
6767
| test.cpp:63:9:63:11 | arr indirection [p] | semmle.label | arr indirection [p] |
6868
| test.cpp:63:13:63:13 | p | semmle.label | p |
6969
| test.cpp:67:10:67:19 | mk_array_p indirection [p] | semmle.label | mk_array_p indirection [p] |
70+
| test.cpp:69:5:69:7 | arr indirection [post update] [p] | semmle.label | arr indirection [post update] [p] |
7071
| test.cpp:69:5:69:25 | ... = ... | semmle.label | ... = ... |
71-
| test.cpp:69:10:69:10 | arr indirection [post update] [p] | semmle.label | arr indirection [post update] [p] |
7272
| test.cpp:69:14:69:19 | call to malloc | semmle.label | call to malloc |
7373
| test.cpp:70:5:70:7 | arr indirection [p] | semmle.label | arr indirection [p] |
7474
| test.cpp:76:20:76:29 | call to mk_array_p indirection [p] | semmle.label | call to mk_array_p indirection [p] |

cpp/ql/test/library-tests/syntax-zoo/dataflow-ir-consistency.expected

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,6 @@ localCallNodes
2020
postIsNotPre
2121
postHasUniquePre
2222
uniquePostUpdate
23-
| allocators.cpp:4:24:4:26 | this indirection | Node has multiple PostUpdateNodes. |
24-
| cpp11.cpp:82:17:82:17 | this indirection | Node has multiple PostUpdateNodes. |
25-
| cpp11.cpp:82:17:82:55 | [...](...){...} indirection | Node has multiple PostUpdateNodes. |
26-
| ir.cpp:514:10:514:11 | definition of r2 indirection | Node has multiple PostUpdateNodes. |
27-
| ir.cpp:515:10:515:11 | definition of r3 indirection | Node has multiple PostUpdateNodes. |
28-
| ir.cpp:515:10:515:11 | definition of r3 indirection | Node has multiple PostUpdateNodes. |
29-
| ir.cpp:516:10:516:11 | definition of r4 indirection | Node has multiple PostUpdateNodes. |
30-
| ir.cpp:516:10:516:11 | definition of r4 indirection | Node has multiple PostUpdateNodes. |
31-
| ir.cpp:659:5:659:5 | this indirection | Node has multiple PostUpdateNodes. |
32-
| ir.cpp:659:5:659:5 | this indirection | Node has multiple PostUpdateNodes. |
33-
| ir.cpp:747:8:747:8 | this indirection | Node has multiple PostUpdateNodes. |
34-
| ir.cpp:750:3:750:6 | this indirection | Node has multiple PostUpdateNodes. |
35-
| ir.cpp:759:3:759:8 | this indirection | Node has multiple PostUpdateNodes. |
36-
| ir.cpp:768:3:768:9 | this indirection | Node has multiple PostUpdateNodes. |
37-
| ir.cpp:777:3:777:11 | this indirection | Node has multiple PostUpdateNodes. |
38-
| ir.cpp:786:3:786:11 | this indirection | Node has multiple PostUpdateNodes. |
39-
| ir.cpp:795:3:795:11 | this indirection | Node has multiple PostUpdateNodes. |
40-
| static_init_templates.cpp:240:7:240:7 | this indirection | Node has multiple PostUpdateNodes. |
4123
postIsInSameCallable
4224
reverseRead
4325
argHasPostUpdate

0 commit comments

Comments
 (0)