@@ -212,15 +212,16 @@ edges
212
212
| test.cpp:214:24:214:24 | p | test.cpp:216:10:216:10 | p |
213
213
| test.cpp:220:43:220:48 | call to malloc | test.cpp:222:15:222:20 | buffer |
214
214
| test.cpp:222:15:222:20 | buffer | test.cpp:214:24:214:24 | p |
215
- | test.cpp:225:40:225:45 | buffer | test.cpp:226:5:226:26 | ... = ... |
216
- | test.cpp:226:5:226:26 | ... = ... | test.cpp:226:12:226:17 | p_str indirection [post update] [string] |
217
- | test.cpp:231:27:231:32 | call to malloc | test.cpp:232:22:232:27 | buffer |
218
- | test.cpp:232:16:232:19 | set_string output argument [string] | test.cpp:233:12:233:14 | str indirection [string] |
219
- | test.cpp:232:22:232:27 | buffer | test.cpp:225:40:225:45 | buffer |
220
- | test.cpp:232:22:232:27 | buffer | test.cpp:232:16:232:19 | set_string output argument [string] |
221
- | test.cpp:233:12:233:14 | str indirection [string] | test.cpp:233:12:233:21 | string |
222
- | test.cpp:233:12:233:14 | str indirection [string] | test.cpp:233:16:233:21 | string indirection |
223
- | test.cpp:233:16:233:21 | string indirection | test.cpp:233:12:233:21 | string |
215
+ | test.cpp:228:43:228:48 | call to malloc | test.cpp:232:10:232:15 | buffer |
216
+ | test.cpp:235:40:235:45 | buffer | test.cpp:236:5:236:26 | ... = ... |
217
+ | test.cpp:236:5:236:26 | ... = ... | test.cpp:236:12:236:17 | p_str indirection [post update] [string] |
218
+ | test.cpp:241:27:241:32 | call to malloc | test.cpp:242:22:242:27 | buffer |
219
+ | test.cpp:242:16:242:19 | set_string output argument [string] | test.cpp:243:12:243:14 | str indirection [string] |
220
+ | test.cpp:242:22:242:27 | buffer | test.cpp:235:40:235:45 | buffer |
221
+ | test.cpp:242:22:242:27 | buffer | test.cpp:242:16:242:19 | set_string output argument [string] |
222
+ | test.cpp:243:12:243:14 | str indirection [string] | test.cpp:243:12:243:21 | string |
223
+ | test.cpp:243:12:243:14 | str indirection [string] | test.cpp:243:16:243:21 | string indirection |
224
+ | test.cpp:243:16:243:21 | string indirection | test.cpp:243:12:243:21 | string |
224
225
nodes
225
226
| test.cpp:16:11:16:21 | mk_string_t indirection [string] | semmle.label | mk_string_t indirection [string] |
226
227
| test.cpp:18:5:18:30 | ... = ... | semmle.label | ... = ... |
@@ -390,17 +391,19 @@ nodes
390
391
| test.cpp:216:10:216:10 | p | semmle.label | p |
391
392
| test.cpp:220:43:220:48 | call to malloc | semmle.label | call to malloc |
392
393
| test.cpp:222:15:222:20 | buffer | semmle.label | buffer |
393
- | test.cpp:225:40:225:45 | buffer | semmle.label | buffer |
394
- | test.cpp:226:5:226:26 | ... = ... | semmle.label | ... = ... |
395
- | test.cpp:226:12:226:17 | p_str indirection [post update] [string] | semmle.label | p_str indirection [post update] [string] |
396
- | test.cpp:231:27:231:32 | call to malloc | semmle.label | call to malloc |
397
- | test.cpp:232:16:232:19 | set_string output argument [string] | semmle.label | set_string output argument [string] |
398
- | test.cpp:232:22:232:27 | buffer | semmle.label | buffer |
399
- | test.cpp:233:12:233:14 | str indirection [string] | semmle.label | str indirection [string] |
400
- | test.cpp:233:12:233:21 | string | semmle.label | string |
401
- | test.cpp:233:16:233:21 | string indirection | semmle.label | string indirection |
394
+ | test.cpp:228:43:228:48 | call to malloc | semmle.label | call to malloc |
395
+ | test.cpp:232:10:232:15 | buffer | semmle.label | buffer |
396
+ | test.cpp:235:40:235:45 | buffer | semmle.label | buffer |
397
+ | test.cpp:236:5:236:26 | ... = ... | semmle.label | ... = ... |
398
+ | test.cpp:236:12:236:17 | p_str indirection [post update] [string] | semmle.label | p_str indirection [post update] [string] |
399
+ | test.cpp:241:27:241:32 | call to malloc | semmle.label | call to malloc |
400
+ | test.cpp:242:16:242:19 | set_string output argument [string] | semmle.label | set_string output argument [string] |
401
+ | test.cpp:242:22:242:27 | buffer | semmle.label | buffer |
402
+ | test.cpp:243:12:243:14 | str indirection [string] | semmle.label | str indirection [string] |
403
+ | test.cpp:243:12:243:21 | string | semmle.label | string |
404
+ | test.cpp:243:16:243:21 | string indirection | semmle.label | string indirection |
402
405
subpaths
403
- | test.cpp:232 :22:232 :27 | buffer | test.cpp:225 :40:225 :45 | buffer | test.cpp:226 :12:226 :17 | p_str indirection [post update] [string] | test.cpp:232 :16:232 :19 | set_string output argument [string] |
406
+ | test.cpp:242 :22:242 :27 | buffer | test.cpp:235 :40:235 :45 | buffer | test.cpp:236 :12:236 :17 | p_str indirection [post update] [string] | test.cpp:242 :16:242 :19 | set_string output argument [string] |
404
407
#select
405
408
| test.cpp:42:5:42:11 | call to strncpy | test.cpp:18:19:18:24 | call to malloc | test.cpp:42:18:42:23 | string | This write may overflow $@ by 1 element. | test.cpp:42:18:42:23 | string | string |
406
409
| test.cpp:72:9:72:15 | call to strncpy | test.cpp:18:19:18:24 | call to malloc | test.cpp:72:22:72:27 | string | This write may overflow $@ by 1 element. | test.cpp:72:22:72:27 | string | string |
@@ -417,4 +420,5 @@ subpaths
417
420
| test.cpp:199:9:199:15 | call to strncpy | test.cpp:147:19:147:24 | call to malloc | test.cpp:199:22:199:27 | string | This write may overflow $@ by 2 elements. | test.cpp:199:22:199:27 | string | string |
418
421
| test.cpp:203:9:203:15 | call to strncpy | test.cpp:147:19:147:24 | call to malloc | test.cpp:203:22:203:27 | string | This write may overflow $@ by 2 elements. | test.cpp:203:22:203:27 | string | string |
419
422
| test.cpp:207:9:207:15 | call to strncpy | test.cpp:147:19:147:24 | call to malloc | test.cpp:207:22:207:27 | string | This write may overflow $@ by 3 elements. | test.cpp:207:22:207:27 | string | string |
420
- | test.cpp:233:5:233:10 | call to memset | test.cpp:231:27:231:32 | call to malloc | test.cpp:233:12:233:21 | string | This write may overflow $@ by 1 element. | test.cpp:233:16:233:21 | string | string |
423
+ | test.cpp:232:3:232:8 | call to memset | test.cpp:228:43:228:48 | call to malloc | test.cpp:232:10:232:15 | buffer | This write may overflow $@ by 32 elements. | test.cpp:232:10:232:15 | buffer | buffer |
424
+ | test.cpp:243:5:243:10 | call to memset | test.cpp:241:27:241:32 | call to malloc | test.cpp:243:12:243:21 | string | This write may overflow $@ by 1 element. | test.cpp:243:16:243:21 | string | string |
0 commit comments