Skip to content

Commit bc36e0d

Browse files
committed
C++: Accept more test changes.
1 parent cc592b1 commit bc36e0d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

cpp/ql/test/query-tests/Security/CWE/CWE-190/semmle/TaintedAllocationSize/TaintedAllocationSize.expected

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,24 @@ edges
2727
| test.cpp:39:21:39:24 | argv | test.cpp:52:35:52:60 | ... * ... |
2828
| test.cpp:39:21:39:24 | argv | test.cpp:52:35:52:60 | ... * ... |
2929
| test.cpp:39:21:39:24 | argv | test.cpp:52:35:52:60 | ... * ... |
30+
| test.cpp:75:25:75:29 | start | test.cpp:79:18:79:28 | ... - ... |
31+
| test.cpp:75:25:75:29 | start | test.cpp:79:18:79:28 | ... - ... |
32+
| test.cpp:75:38:75:40 | end | test.cpp:79:18:79:28 | ... - ... |
33+
| test.cpp:75:38:75:40 | end | test.cpp:79:18:79:28 | ... - ... |
34+
| test.cpp:97:18:97:23 | buffer | test.cpp:100:4:100:15 | Argument 0 |
35+
| test.cpp:97:18:97:23 | buffer | test.cpp:100:17:100:22 | Argument 0 indirection |
36+
| test.cpp:97:18:97:23 | buffer | test.cpp:101:4:101:15 | Argument 0 |
37+
| test.cpp:97:18:97:23 | buffer | test.cpp:101:4:101:15 | Argument 1 |
38+
| test.cpp:97:18:97:23 | fread output argument | test.cpp:100:4:100:15 | Argument 0 |
39+
| test.cpp:97:18:97:23 | fread output argument | test.cpp:100:17:100:22 | Argument 0 indirection |
40+
| test.cpp:97:18:97:23 | fread output argument | test.cpp:101:4:101:15 | Argument 0 |
41+
| test.cpp:97:18:97:23 | fread output argument | test.cpp:101:4:101:15 | Argument 1 |
42+
| test.cpp:100:4:100:15 | Argument 0 | test.cpp:100:17:100:22 | processData1 output argument |
43+
| test.cpp:100:17:100:22 | Argument 0 indirection | test.cpp:100:17:100:22 | processData1 output argument |
44+
| test.cpp:100:17:100:22 | processData1 output argument | test.cpp:101:4:101:15 | Argument 0 |
45+
| test.cpp:100:17:100:22 | processData1 output argument | test.cpp:101:4:101:15 | Argument 1 |
46+
| test.cpp:101:4:101:15 | Argument 0 | test.cpp:75:25:75:29 | start |
47+
| test.cpp:101:4:101:15 | Argument 1 | test.cpp:75:38:75:40 | end |
3048
| test.cpp:123:18:123:23 | call to getenv | test.cpp:127:24:127:41 | ... * ... |
3149
| test.cpp:123:18:123:23 | call to getenv | test.cpp:127:24:127:41 | ... * ... |
3250
| test.cpp:123:18:123:31 | (const char *)... | test.cpp:127:24:127:41 | ... * ... |
@@ -106,6 +124,21 @@ nodes
106124
| test.cpp:52:35:52:60 | ... * ... | semmle.label | ... * ... |
107125
| test.cpp:52:35:52:60 | ... * ... | semmle.label | ... * ... |
108126
| test.cpp:52:35:52:60 | ... * ... | semmle.label | ... * ... |
127+
| test.cpp:64:25:64:30 | *buffer | semmle.label | *buffer |
128+
| test.cpp:64:25:64:30 | *buffer | semmle.label | *buffer |
129+
| test.cpp:64:25:64:30 | buffer | semmle.label | buffer |
130+
| test.cpp:75:25:75:29 | start | semmle.label | start |
131+
| test.cpp:75:38:75:40 | end | semmle.label | end |
132+
| test.cpp:79:18:79:28 | ... - ... | semmle.label | ... - ... |
133+
| test.cpp:79:18:79:28 | ... - ... | semmle.label | ... - ... |
134+
| test.cpp:79:18:79:28 | ... - ... | semmle.label | ... - ... |
135+
| test.cpp:97:18:97:23 | buffer | semmle.label | buffer |
136+
| test.cpp:97:18:97:23 | fread output argument | semmle.label | fread output argument |
137+
| test.cpp:100:4:100:15 | Argument 0 | semmle.label | Argument 0 |
138+
| test.cpp:100:17:100:22 | Argument 0 indirection | semmle.label | Argument 0 indirection |
139+
| test.cpp:100:17:100:22 | processData1 output argument | semmle.label | processData1 output argument |
140+
| test.cpp:101:4:101:15 | Argument 0 | semmle.label | Argument 0 |
141+
| test.cpp:101:4:101:15 | Argument 1 | semmle.label | Argument 1 |
109142
| test.cpp:123:18:123:23 | call to getenv | semmle.label | call to getenv |
110143
| test.cpp:123:18:123:31 | (const char *)... | semmle.label | (const char *)... |
111144
| test.cpp:127:24:127:41 | ... * ... | semmle.label | ... * ... |
@@ -180,6 +213,7 @@ nodes
180213
| test.cpp:48:25:48:30 | call to malloc | test.cpp:39:21:39:24 | argv | test.cpp:48:32:48:35 | size | This allocation size is derived from $@ and might overflow | test.cpp:39:21:39:24 | argv | user input (argv) |
181214
| test.cpp:49:17:49:30 | new[] | test.cpp:39:21:39:24 | argv | test.cpp:49:26:49:29 | size | This allocation size is derived from $@ and might overflow | test.cpp:39:21:39:24 | argv | user input (argv) |
182215
| test.cpp:52:21:52:27 | call to realloc | test.cpp:39:21:39:24 | argv | test.cpp:52:35:52:60 | ... * ... | This allocation size is derived from $@ and might overflow | test.cpp:39:21:39:24 | argv | user input (argv) |
216+
| test.cpp:79:9:79:29 | new[] | test.cpp:97:18:97:23 | buffer | test.cpp:79:18:79:28 | ... - ... | This allocation size is derived from $@ and might overflow | test.cpp:97:18:97:23 | buffer | user input (fread) |
183217
| test.cpp:127:17:127:22 | call to malloc | test.cpp:123:18:123:23 | call to getenv | test.cpp:127:24:127:41 | ... * ... | This allocation size is derived from $@ and might overflow | test.cpp:123:18:123:23 | call to getenv | user input (getenv) |
184218
| test.cpp:134:3:134:8 | call to malloc | test.cpp:132:19:132:24 | call to getenv | test.cpp:134:10:134:27 | ... * ... | This allocation size is derived from $@ and might overflow | test.cpp:132:19:132:24 | call to getenv | user input (getenv) |
185219
| test.cpp:142:4:142:9 | call to malloc | test.cpp:138:19:138:24 | call to getenv | test.cpp:142:11:142:28 | ... * ... | This allocation size is derived from $@ and might overflow | test.cpp:138:19:138:24 | call to getenv | user input (getenv) |

0 commit comments

Comments
 (0)