Skip to content

Commit b216c79

Browse files
committed
C++: Accept test changes
1 parent f35b7f8 commit b216c79

File tree

2 files changed

+1
-43
lines changed

2 files changed

+1
-43
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
edges
22
| test.c:9:23:9:26 | argv | test.c:17:11:17:18 | fileName indirection |
33
| test.c:31:22:31:25 | argv | test.c:32:11:32:18 | fileName indirection |
4-
| test.c:37:17:37:24 | fileName | test.c:38:11:38:18 | fileName indirection |
54
| test.c:37:17:37:24 | scanf output argument | test.c:38:11:38:18 | fileName indirection |
65
| test.c:43:17:43:24 | fileName | test.c:44:11:44:18 | fileName indirection |
76
| test.c:43:17:43:24 | scanf output argument | test.c:44:11:44:18 | fileName indirection |
@@ -10,7 +9,6 @@ nodes
109
| test.c:17:11:17:18 | fileName indirection | semmle.label | fileName indirection |
1110
| test.c:31:22:31:25 | argv | semmle.label | argv |
1211
| test.c:32:11:32:18 | fileName indirection | semmle.label | fileName indirection |
13-
| test.c:37:17:37:24 | fileName | semmle.label | fileName |
1412
| test.c:37:17:37:24 | scanf output argument | semmle.label | scanf output argument |
1513
| test.c:38:11:38:18 | fileName indirection | semmle.label | fileName indirection |
1614
| test.c:43:17:43:24 | fileName | semmle.label | fileName |
@@ -20,5 +18,5 @@ subpaths
2018
#select
2119
| test.c:17:11:17:18 | fileName | test.c:9:23:9:26 | argv | test.c:17:11:17:18 | fileName indirection | This argument to a file access function is derived from $@ and then passed to fopen(filename). | test.c:9:23:9:26 | argv | user input (argv) |
2220
| test.c:32:11:32:18 | fileName | test.c:31:22:31:25 | argv | test.c:32:11:32:18 | fileName indirection | This argument to a file access function is derived from $@ and then passed to fopen(filename). | test.c:31:22:31:25 | argv | user input (argv) |
23-
| test.c:38:11:38:18 | fileName | test.c:37:17:37:24 | fileName | test.c:38:11:38:18 | fileName indirection | This argument to a file access function is derived from $@ and then passed to fopen(filename). | test.c:37:17:37:24 | fileName | user input (scanf) |
21+
| test.c:38:11:38:18 | fileName | test.c:37:17:37:24 | scanf output argument | test.c:38:11:38:18 | fileName indirection | This argument to a file access function is derived from $@ and then passed to fopen(filename). | test.c:37:17:37:24 | fileName | user input (scanf) |
2422
| test.c:44:11:44:18 | fileName | test.c:43:17:43:24 | fileName | test.c:44:11:44:18 | fileName indirection | This argument to a file access function is derived from $@ and then passed to fopen(filename). | test.c:43:17:43:24 | fileName | user input (scanf) |

cpp/ql/test/query-tests/Security/CWE/CWE-120/semmle/tests/UnboundedWrite.expected

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,12 @@ edges
77
| tests.c:28:22:28:25 | argv | tests.c:28:22:28:28 | access to array |
88
| tests.c:28:22:28:25 | argv | tests.c:28:22:28:28 | access to array indirection |
99
| tests.c:28:22:28:25 | argv | tests.c:28:22:28:28 | access to array indirection |
10-
| tests.c:28:22:28:25 | argv | tests.c:31:15:31:23 | buffer100 |
11-
| tests.c:28:22:28:25 | argv | tests.c:31:15:31:23 | buffer100 |
12-
| tests.c:28:22:28:25 | argv | tests.c:31:15:31:23 | buffer100 indirection |
13-
| tests.c:28:22:28:25 | argv | tests.c:31:15:31:23 | buffer100 indirection |
14-
| tests.c:28:22:28:25 | argv | tests.c:33:21:33:29 | buffer100 |
15-
| tests.c:28:22:28:25 | argv | tests.c:33:21:33:29 | buffer100 |
16-
| tests.c:28:22:28:25 | argv | tests.c:33:21:33:29 | buffer100 indirection |
17-
| tests.c:28:22:28:25 | argv | tests.c:33:21:33:29 | buffer100 indirection |
1810
| tests.c:29:28:29:31 | argv | tests.c:29:28:29:34 | access to array |
1911
| tests.c:29:28:29:31 | argv | tests.c:29:28:29:34 | access to array |
2012
| tests.c:29:28:29:31 | argv | tests.c:29:28:29:34 | access to array |
2113
| tests.c:29:28:29:31 | argv | tests.c:29:28:29:34 | access to array |
2214
| tests.c:29:28:29:31 | argv | tests.c:29:28:29:34 | access to array indirection |
2315
| tests.c:29:28:29:31 | argv | tests.c:29:28:29:34 | access to array indirection |
24-
| tests.c:29:28:29:31 | argv | tests.c:31:15:31:23 | buffer100 |
25-
| tests.c:29:28:29:31 | argv | tests.c:31:15:31:23 | buffer100 |
26-
| tests.c:29:28:29:31 | argv | tests.c:31:15:31:23 | buffer100 indirection |
27-
| tests.c:29:28:29:31 | argv | tests.c:31:15:31:23 | buffer100 indirection |
28-
| tests.c:29:28:29:31 | argv | tests.c:33:21:33:29 | buffer100 |
29-
| tests.c:29:28:29:31 | argv | tests.c:33:21:33:29 | buffer100 |
30-
| tests.c:29:28:29:31 | argv | tests.c:33:21:33:29 | buffer100 indirection |
31-
| tests.c:29:28:29:31 | argv | tests.c:33:21:33:29 | buffer100 indirection |
32-
| tests.c:31:15:31:23 | array to pointer conversion | tests.c:31:15:31:23 | buffer100 |
33-
| tests.c:31:15:31:23 | array to pointer conversion | tests.c:31:15:31:23 | buffer100 indirection |
34-
| tests.c:31:15:31:23 | array to pointer conversion | tests.c:33:21:33:29 | buffer100 |
35-
| tests.c:31:15:31:23 | array to pointer conversion | tests.c:33:21:33:29 | buffer100 indirection |
36-
| tests.c:31:15:31:23 | buffer100 | tests.c:31:15:31:23 | buffer100 |
37-
| tests.c:31:15:31:23 | buffer100 | tests.c:31:15:31:23 | buffer100 indirection |
38-
| tests.c:31:15:31:23 | buffer100 | tests.c:33:21:33:29 | buffer100 |
39-
| tests.c:31:15:31:23 | buffer100 | tests.c:33:21:33:29 | buffer100 indirection |
40-
| tests.c:31:15:31:23 | scanf output argument | tests.c:33:21:33:29 | buffer100 |
41-
| tests.c:31:15:31:23 | scanf output argument | tests.c:33:21:33:29 | buffer100 indirection |
42-
| tests.c:33:21:33:29 | array to pointer conversion | tests.c:33:21:33:29 | buffer100 |
43-
| tests.c:33:21:33:29 | array to pointer conversion | tests.c:33:21:33:29 | buffer100 indirection |
44-
| tests.c:33:21:33:29 | buffer100 | tests.c:33:21:33:29 | buffer100 |
45-
| tests.c:33:21:33:29 | buffer100 | tests.c:33:21:33:29 | buffer100 indirection |
4616
| tests.c:34:10:34:13 | argv | tests.c:34:10:34:16 | (const char *)... |
4717
| tests.c:34:10:34:13 | argv | tests.c:34:10:34:16 | (const char *)... |
4818
| tests.c:34:10:34:13 | argv | tests.c:34:10:34:16 | access to array |
@@ -65,16 +35,11 @@ nodes
6535
| tests.c:29:28:29:34 | access to array | semmle.label | access to array |
6636
| tests.c:29:28:29:34 | access to array indirection | semmle.label | access to array indirection |
6737
| tests.c:31:15:31:23 | array to pointer conversion | semmle.label | array to pointer conversion |
68-
| tests.c:31:15:31:23 | array to pointer conversion | semmle.label | array to pointer conversion |
6938
| tests.c:31:15:31:23 | buffer100 | semmle.label | buffer100 |
7039
| tests.c:31:15:31:23 | buffer100 | semmle.label | buffer100 |
71-
| tests.c:31:15:31:23 | buffer100 indirection | semmle.label | buffer100 indirection |
72-
| tests.c:31:15:31:23 | scanf output argument | semmle.label | scanf output argument |
73-
| tests.c:33:21:33:29 | array to pointer conversion | semmle.label | array to pointer conversion |
7440
| tests.c:33:21:33:29 | array to pointer conversion | semmle.label | array to pointer conversion |
7541
| tests.c:33:21:33:29 | buffer100 | semmle.label | buffer100 |
7642
| tests.c:33:21:33:29 | buffer100 | semmle.label | buffer100 |
77-
| tests.c:33:21:33:29 | buffer100 indirection | semmle.label | buffer100 indirection |
7843
| tests.c:34:10:34:13 | argv | semmle.label | argv |
7944
| tests.c:34:10:34:13 | argv | semmle.label | argv |
8045
| tests.c:34:10:34:16 | (const char *)... | semmle.label | (const char *)... |
@@ -84,11 +49,6 @@ nodes
8449
#select
8550
| tests.c:28:3:28:9 | call to sprintf | tests.c:28:22:28:25 | argv | tests.c:28:22:28:28 | access to array | This 'call to sprintf' with input from $@ may overflow the destination. | tests.c:28:22:28:25 | argv | argv |
8651
| tests.c:29:3:29:9 | call to sprintf | tests.c:29:28:29:31 | argv | tests.c:29:28:29:34 | access to array | This 'call to sprintf' with input from $@ may overflow the destination. | tests.c:29:28:29:31 | argv | argv |
87-
| tests.c:31:15:31:23 | buffer100 | tests.c:28:22:28:25 | argv | tests.c:31:15:31:23 | buffer100 | This 'scanf string argument' with input from $@ may overflow the destination. | tests.c:28:22:28:25 | argv | argv |
88-
| tests.c:31:15:31:23 | buffer100 | tests.c:29:28:29:31 | argv | tests.c:31:15:31:23 | buffer100 | This 'scanf string argument' with input from $@ may overflow the destination. | tests.c:29:28:29:31 | argv | argv |
8952
| tests.c:31:15:31:23 | buffer100 | tests.c:31:15:31:23 | buffer100 | tests.c:31:15:31:23 | buffer100 | This 'scanf string argument' with input from $@ may overflow the destination. | tests.c:31:15:31:23 | buffer100 | buffer100 |
90-
| tests.c:33:21:33:29 | buffer100 | tests.c:28:22:28:25 | argv | tests.c:33:21:33:29 | buffer100 | This 'scanf string argument' with input from $@ may overflow the destination. | tests.c:28:22:28:25 | argv | argv |
91-
| tests.c:33:21:33:29 | buffer100 | tests.c:29:28:29:31 | argv | tests.c:33:21:33:29 | buffer100 | This 'scanf string argument' with input from $@ may overflow the destination. | tests.c:29:28:29:31 | argv | argv |
92-
| tests.c:33:21:33:29 | buffer100 | tests.c:31:15:31:23 | buffer100 | tests.c:33:21:33:29 | buffer100 | This 'scanf string argument' with input from $@ may overflow the destination. | tests.c:31:15:31:23 | buffer100 | buffer100 |
9353
| tests.c:33:21:33:29 | buffer100 | tests.c:33:21:33:29 | buffer100 | tests.c:33:21:33:29 | buffer100 | This 'scanf string argument' with input from $@ may overflow the destination. | tests.c:33:21:33:29 | buffer100 | buffer100 |
9454
| tests.c:34:25:34:33 | buffer100 | tests.c:34:10:34:13 | argv | tests.c:34:10:34:16 | access to array | This 'sscanf string argument' with input from $@ may overflow the destination. | tests.c:34:10:34:13 | argv | argv |

0 commit comments

Comments
 (0)