Skip to content

Commit 5b9b5d8

Browse files
committed
Update expected results of both queries
1 parent 8a45c9c commit 5b9b5d8

File tree

2 files changed

+185
-168
lines changed

2 files changed

+185
-168
lines changed
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
1-
| test.cpp:234:3:234:8 | call to strchr | The $@ passed to strchr is 5 bytes, but an offset of 5 bytes is used to access it. | test.cpp:234:10:234:21 | ... + ... | read buffer | test.cpp:234:10:234:21 | ... + ... | |
2-
| test.cpp:238:5:238:10 | call to strcpy | The size of the $@ passed to strcpy is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:238:22:238:28 | test1 | read buffer | test.cpp:238:12:238:19 | ca5_good | write buffer |
3-
| test.cpp:244:5:244:10 | call to strcpy | The size of the $@ passed to strcpy is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:244:24:244:31 | ca6_good | read buffer | test.cpp:244:12:244:19 | call to get_ca_5 | write buffer |
4-
| test.cpp:249:5:249:10 | call to strcpy | The size of the $@ passed to strcpy is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:249:22:249:29 | ca6_good | read buffer | test.cpp:249:12:249:19 | ca5_good | write buffer |
5-
| test.cpp:255:5:255:10 | call to strcpy | The size of the $@ passed to strcpy is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:255:24:255:31 | ca6_good | read buffer | test.cpp:255:12:255:19 | call to get_ca_5 | write buffer |
6-
| test.cpp:287:5:287:10 | call to memcpy | The $@ passed to memcpy is accessed at an excessive offset of 1 element(s) from the $@. | test.cpp:287:12:287:13 | p2 | write buffer | test.cpp:280:29:280:34 | call to strlen | allocation size base |
7-
| test.cpp:313:5:313:10 | call to strcat | The $@ passed to strcat might not be null-terminated. | test.cpp:313:12:313:15 | buf1 | argument | test.cpp:313:12:313:15 | buf1 | |
8-
| test.cpp:318:5:318:10 | call to strcat | The size of the $@ passed to strcat is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:318:24:318:30 | 12345 | read buffer | test.cpp:318:12:318:19 | call to get_ca_5 | write buffer |
9-
| test.cpp:320:5:320:10 | call to strcat | The size of the $@ passed to strcat is 5 bytes, but the size of the $@ is only 4 bytes. | test.cpp:320:28:320:33 | 1234 | read buffer | test.cpp:320:12:320:25 | ... + ... | write buffer |
10-
| test.cpp:338:5:338:12 | call to mbstowcs | The size of the $@ passed to mbstowcs is 512 bytes, but the $@ is 2048 bytes. | test.cpp:338:14:338:17 | wbuf | write buffer | test.cpp:338:26:338:37 | sizeof(<expr>) | size argument |
11-
| test.cpp:340:5:340:12 | call to mbstowcs | The $@ passed to mbstowcs might not be null-terminated. | test.cpp:340:20:340:23 | buf2 | argument | test.cpp:340:20:340:23 | buf2 | |
12-
| test.cpp:350:5:350:12 | call to wcstombs | The size of the $@ passed to wcstombs is 128 bytes, but the $@ is 512 bytes. | test.cpp:350:14:350:16 | buf | write buffer | test.cpp:350:25:350:36 | sizeof(<expr>) | size argument |
13-
| test.cpp:350:5:350:12 | call to wcstombs | The size of the $@ passed to wcstombs is 512 bytes, but the size of the $@ is only 128 bytes. | test.cpp:350:19:350:22 | wbuf | read buffer | test.cpp:350:14:350:16 | buf | write buffer |
14-
| test.cpp:353:5:353:12 | call to wcstombs | The size of the $@ passed to wcstombs is 127 bytes, but the $@ is 128 bytes. | test.cpp:353:14:353:20 | ... + ... | write buffer | test.cpp:353:33:353:43 | sizeof(<expr>) | size argument |
15-
| test.cpp:353:5:353:12 | call to wcstombs | The size of the $@ passed to wcstombs is 508 bytes, but the size of the $@ is only 127 bytes. | test.cpp:353:23:353:30 | ... + ... | read buffer | test.cpp:353:14:353:20 | ... + ... | write buffer |
16-
| test.cpp:362:5:362:10 | call to mbtowc | The size of the $@ passed to mbtowc is 2 bytes, but the $@ is 3 bytes. | test.cpp:362:16:362:18 | buf | read buffer | test.cpp:362:21:362:35 | ... + ... | size argument |
17-
| test.cpp:370:5:370:9 | call to mblen | The size of the $@ passed to mblen is 3 bytes, but the $@ is 4 bytes. | test.cpp:370:11:370:13 | buf | read buffer | test.cpp:370:16:370:30 | ... + ... | size argument |
18-
| test.cpp:371:5:371:9 | call to mblen | The size of the $@ passed to mblen is 5 bytes, but the $@ is 6 bytes. | test.cpp:371:19:371:24 | call to malloc | read buffer | test.cpp:371:30:371:44 | ... * ... | size argument |
19-
| test.cpp:379:5:379:10 | call to memchr | The size of the $@ passed to memchr is 128 bytes, but the $@ is 129 bytes. | test.cpp:379:12:379:14 | buf | read buffer | test.cpp:379:20:379:34 | ... + ... | size argument |
20-
| test.cpp:380:5:380:10 | call to memset | The size of the $@ passed to memset is 128 bytes, but the $@ is 129 bytes. | test.cpp:380:12:380:14 | buf | write buffer | test.cpp:380:20:380:34 | ... + ... | size argument |
21-
| test.cpp:382:5:382:10 | call to memchr | The $@ passed to memchr is null. | test.cpp:382:12:382:15 | 0 | argument | test.cpp:382:12:382:15 | 0 | |
22-
| test.cpp:389:5:389:12 | call to strftime | The size of the $@ passed to strftime is 128 bytes, but the $@ is 129 bytes. | test.cpp:389:14:389:16 | buf | write buffer | test.cpp:389:19:389:33 | ... + ... | size argument |
23-
| test.cpp:391:5:391:12 | call to strftime | The size of the $@ passed to strftime is 127 bytes, but the $@ is 128 bytes. | test.cpp:391:14:391:20 | ... + ... | write buffer | test.cpp:391:23:391:33 | sizeof(<expr>) | size argument |
24-
| test.cpp:399:5:399:12 | call to wcsftime | The size of the $@ passed to wcsftime is 512 bytes, but the $@ is 520 bytes. | test.cpp:399:14:399:17 | wbuf | write buffer | test.cpp:399:20:399:53 | ... + ... | size argument |
25-
| test.cpp:403:5:403:12 | call to wcsftime | The size of the $@ passed to wcsftime is 508 bytes, but the $@ is 512 bytes. | test.cpp:403:14:403:21 | ... + ... | write buffer | test.cpp:403:24:403:53 | ... / ... | size argument |
26-
| test.cpp:405:5:405:12 | call to wcsftime | The size of the $@ passed to wcsftime is 512 bytes, but the $@ is 2048 bytes. | test.cpp:405:14:405:17 | wbuf | write buffer | test.cpp:405:20:405:31 | sizeof(<expr>) | size argument |
27-
| test.cpp:413:5:413:11 | call to strxfrm | The size of the $@ passed to strxfrm is 64 bytes, but the $@ is 65 bytes. | test.cpp:413:13:413:15 | buf | write buffer | test.cpp:413:25:413:39 | ... + ... | size argument |
28-
| test.cpp:415:5:415:11 | call to strxfrm | The $@ passed to strxfrm might not be null-terminated. | test.cpp:415:22:415:25 | buf2 | argument | test.cpp:415:22:415:25 | buf2 | |
29-
| test.cpp:424:5:424:11 | call to strncat | The size of the $@ passed to strncat is 32 bytes, but the $@ is 33 bytes. | test.cpp:424:18:424:21 | buf2 | read buffer | test.cpp:424:24:424:39 | ... + ... | size argument |
30-
| test.cpp:427:5:427:11 | call to strncat | The size of the $@ passed to strncat is 31 bytes, but the $@ is 64 bytes. | test.cpp:427:18:427:25 | ... + ... | read buffer | test.cpp:427:28:427:43 | ... * ... | size argument |
31-
| test.cpp:435:5:435:11 | call to wcsxfrm | The size of the $@ passed to wcsxfrm is 256 bytes, but the $@ is 260 bytes. | test.cpp:435:13:435:16 | wbuf | write buffer | test.cpp:435:27:435:60 | ... + ... | size argument |
32-
| test.cpp:437:5:437:11 | call to wcsxfrm | The $@ passed to wcsxfrm might not be null-terminated. | test.cpp:437:23:437:27 | wbuf2 | argument | test.cpp:437:23:437:27 | wbuf2 | |
33-
| test.cpp:450:5:450:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 65 bytes. | test.cpp:450:12:450:14 | buf | write buffer | test.cpp:450:23:450:37 | ... + ... | size argument |
34-
| test.cpp:450:5:450:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 65 bytes. | test.cpp:450:17:450:20 | buf2 | read buffer | test.cpp:450:23:450:37 | ... + ... | size argument |
35-
| test.cpp:452:5:452:10 | call to memcpy | The size of the $@ passed to memcpy is 63 bytes, but the $@ is 64 bytes. | test.cpp:452:12:452:18 | ... + ... | write buffer | test.cpp:452:27:452:37 | sizeof(<expr>) | size argument |
36-
| test.cpp:452:5:452:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the size of the $@ is only 63 bytes. | test.cpp:452:21:452:24 | buf2 | read buffer | test.cpp:452:12:452:18 | ... + ... | write buffer |
37-
| test.cpp:453:5:453:10 | call to memcpy | The size of the $@ passed to memcpy is 63 bytes, but the $@ is 128 bytes. | test.cpp:453:17:453:24 | ... + ... | read buffer | test.cpp:453:27:453:41 | ... * ... | size argument |
38-
| test.cpp:453:5:453:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 128 bytes. | test.cpp:453:12:453:14 | buf | write buffer | test.cpp:453:27:453:41 | ... * ... | size argument |
39-
| test.cpp:460:3:460:8 | call to memcpy | The $@ passed to memcpy is accessed at an excessive offset of 1 element(s) from the $@. | test.cpp:460:10:460:10 | p | write buffer | test.cpp:458:30:458:50 | ... * ... | allocation size base |
1+
| test.cpp:265:3:265:8 | call to strchr | The $@ passed to strchr is 5 bytes, but an offset of 5 bytes is used to access it. | test.cpp:265:10:265:21 | ... + ... | read buffer | test.cpp:265:10:265:21 | ... + ... | |
2+
| test.cpp:269:5:269:10 | call to strcpy | The size of the $@ passed to strcpy is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:269:22:269:28 | test1 | read buffer | test.cpp:269:12:269:19 | ca5_good | write buffer |
3+
| test.cpp:275:5:275:10 | call to strcpy | The size of the $@ passed to strcpy is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:275:24:275:31 | ca6_good | read buffer | test.cpp:275:12:275:19 | call to get_ca_5 | write buffer |
4+
| test.cpp:280:5:280:10 | call to strcpy | The size of the $@ passed to strcpy is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:280:22:280:29 | ca6_good | read buffer | test.cpp:280:12:280:19 | ca5_good | write buffer |
5+
| test.cpp:286:5:286:10 | call to strcpy | The size of the $@ passed to strcpy is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:286:24:286:31 | ca6_good | read buffer | test.cpp:286:12:286:19 | call to get_ca_5 | write buffer |
6+
| test.cpp:318:5:318:10 | call to memcpy | The $@ passed to memcpy is accessed at an excessive offset of 1 element(s) from the $@. | test.cpp:318:12:318:13 | p2 | write buffer | test.cpp:311:29:311:34 | call to strlen | allocation size base |
7+
| test.cpp:344:5:344:10 | call to strcat | The $@ passed to strcat might not be null-terminated. | test.cpp:344:12:344:15 | buf1 | argument | test.cpp:344:12:344:15 | buf1 | |
8+
| test.cpp:349:5:349:10 | call to strcat | The size of the $@ passed to strcat is 6 bytes, but the size of the $@ is only 5 bytes. | test.cpp:349:24:349:30 | 12345 | read buffer | test.cpp:349:12:349:19 | call to get_ca_5 | write buffer |
9+
| test.cpp:351:5:351:10 | call to strcat | The size of the $@ passed to strcat is 5 bytes, but the size of the $@ is only 4 bytes. | test.cpp:351:28:351:33 | 1234 | read buffer | test.cpp:351:12:351:25 | ... + ... | write buffer |
10+
| test.cpp:369:5:369:12 | call to mbstowcs | The size of the $@ passed to mbstowcs is 512 bytes, but the $@ is 2048 bytes. | test.cpp:369:14:369:17 | wbuf | write buffer | test.cpp:369:26:369:37 | sizeof(<expr>) | size argument |
11+
| test.cpp:371:5:371:12 | call to mbstowcs | The $@ passed to mbstowcs might not be null-terminated. | test.cpp:371:20:371:23 | buf2 | argument | test.cpp:371:20:371:23 | buf2 | |
12+
| test.cpp:381:5:381:12 | call to wcstombs | The size of the $@ passed to wcstombs is 128 bytes, but the $@ is 512 bytes. | test.cpp:381:14:381:16 | buf | write buffer | test.cpp:381:25:381:36 | sizeof(<expr>) | size argument |
13+
| test.cpp:381:5:381:12 | call to wcstombs | The size of the $@ passed to wcstombs is 512 bytes, but the size of the $@ is only 128 bytes. | test.cpp:381:19:381:22 | wbuf | read buffer | test.cpp:381:14:381:16 | buf | write buffer |
14+
| test.cpp:384:5:384:12 | call to wcstombs | The size of the $@ passed to wcstombs is 127 bytes, but the $@ is 128 bytes. | test.cpp:384:14:384:20 | ... + ... | write buffer | test.cpp:384:33:384:43 | sizeof(<expr>) | size argument |
15+
| test.cpp:384:5:384:12 | call to wcstombs | The size of the $@ passed to wcstombs is 508 bytes, but the size of the $@ is only 127 bytes. | test.cpp:384:23:384:30 | ... + ... | read buffer | test.cpp:384:14:384:20 | ... + ... | write buffer |
16+
| test.cpp:393:5:393:10 | call to mbtowc | The size of the $@ passed to mbtowc is 2 bytes, but the $@ is 3 bytes. | test.cpp:393:16:393:18 | buf | read buffer | test.cpp:393:21:393:35 | ... + ... | size argument |
17+
| test.cpp:401:5:401:9 | call to mblen | The size of the $@ passed to mblen is 3 bytes, but the $@ is 4 bytes. | test.cpp:401:11:401:13 | buf | read buffer | test.cpp:401:16:401:30 | ... + ... | size argument |
18+
| test.cpp:402:5:402:9 | call to mblen | The size of the $@ passed to mblen is 5 bytes, but the $@ is 6 bytes. | test.cpp:402:19:402:24 | call to malloc | read buffer | test.cpp:402:30:402:44 | ... * ... | size argument |
19+
| test.cpp:410:5:410:10 | call to memchr | The size of the $@ passed to memchr is 128 bytes, but the $@ is 129 bytes. | test.cpp:410:12:410:14 | buf | read buffer | test.cpp:410:20:410:34 | ... + ... | size argument |
20+
| test.cpp:411:5:411:10 | call to memset | The size of the $@ passed to memset is 128 bytes, but the $@ is 129 bytes. | test.cpp:411:12:411:14 | buf | write buffer | test.cpp:411:20:411:34 | ... + ... | size argument |
21+
| test.cpp:413:5:413:10 | call to memchr | The $@ passed to memchr is null. | test.cpp:413:12:413:15 | 0 | argument | test.cpp:413:12:413:15 | 0 | |
22+
| test.cpp:420:5:420:12 | call to strftime | The size of the $@ passed to strftime is 128 bytes, but the $@ is 129 bytes. | test.cpp:420:14:420:16 | buf | write buffer | test.cpp:420:19:420:33 | ... + ... | size argument |
23+
| test.cpp:422:5:422:12 | call to strftime | The size of the $@ passed to strftime is 127 bytes, but the $@ is 128 bytes. | test.cpp:422:14:422:20 | ... + ... | write buffer | test.cpp:422:23:422:33 | sizeof(<expr>) | size argument |
24+
| test.cpp:430:5:430:12 | call to wcsftime | The size of the $@ passed to wcsftime is 512 bytes, but the $@ is 520 bytes. | test.cpp:430:14:430:17 | wbuf | write buffer | test.cpp:430:20:430:53 | ... + ... | size argument |
25+
| test.cpp:434:5:434:12 | call to wcsftime | The size of the $@ passed to wcsftime is 508 bytes, but the $@ is 512 bytes. | test.cpp:434:14:434:21 | ... + ... | write buffer | test.cpp:434:24:434:53 | ... / ... | size argument |
26+
| test.cpp:436:5:436:12 | call to wcsftime | The size of the $@ passed to wcsftime is 512 bytes, but the $@ is 2048 bytes. | test.cpp:436:14:436:17 | wbuf | write buffer | test.cpp:436:20:436:31 | sizeof(<expr>) | size argument |
27+
| test.cpp:444:5:444:11 | call to strxfrm | The size of the $@ passed to strxfrm is 64 bytes, but the $@ is 65 bytes. | test.cpp:444:13:444:15 | buf | write buffer | test.cpp:444:25:444:39 | ... + ... | size argument |
28+
| test.cpp:446:5:446:11 | call to strxfrm | The $@ passed to strxfrm might not be null-terminated. | test.cpp:446:22:446:25 | buf2 | argument | test.cpp:446:22:446:25 | buf2 | |
29+
| test.cpp:455:5:455:11 | call to strncat | The size of the $@ passed to strncat is 32 bytes, but the $@ is 33 bytes. | test.cpp:455:18:455:21 | buf2 | read buffer | test.cpp:455:24:455:39 | ... + ... | size argument |
30+
| test.cpp:458:5:458:11 | call to strncat | The size of the $@ passed to strncat is 31 bytes, but the $@ is 64 bytes. | test.cpp:458:18:458:25 | ... + ... | read buffer | test.cpp:458:28:458:43 | ... * ... | size argument |
31+
| test.cpp:466:5:466:11 | call to wcsxfrm | The size of the $@ passed to wcsxfrm is 256 bytes, but the $@ is 260 bytes. | test.cpp:466:13:466:16 | wbuf | write buffer | test.cpp:466:27:466:60 | ... + ... | size argument |
32+
| test.cpp:468:5:468:11 | call to wcsxfrm | The $@ passed to wcsxfrm might not be null-terminated. | test.cpp:468:23:468:27 | wbuf2 | argument | test.cpp:468:23:468:27 | wbuf2 | |
33+
| test.cpp:481:5:481:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 65 bytes. | test.cpp:481:12:481:14 | buf | write buffer | test.cpp:481:23:481:37 | ... + ... | size argument |
34+
| test.cpp:481:5:481:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 65 bytes. | test.cpp:481:17:481:20 | buf2 | read buffer | test.cpp:481:23:481:37 | ... + ... | size argument |
35+
| test.cpp:483:5:483:10 | call to memcpy | The size of the $@ passed to memcpy is 63 bytes, but the $@ is 64 bytes. | test.cpp:483:12:483:18 | ... + ... | write buffer | test.cpp:483:27:483:37 | sizeof(<expr>) | size argument |
36+
| test.cpp:483:5:483:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the size of the $@ is only 63 bytes. | test.cpp:483:21:483:24 | buf2 | read buffer | test.cpp:483:12:483:18 | ... + ... | write buffer |
37+
| test.cpp:484:5:484:10 | call to memcpy | The size of the $@ passed to memcpy is 63 bytes, but the $@ is 128 bytes. | test.cpp:484:17:484:24 | ... + ... | read buffer | test.cpp:484:27:484:41 | ... * ... | size argument |
38+
| test.cpp:484:5:484:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 128 bytes. | test.cpp:484:12:484:14 | buf | write buffer | test.cpp:484:27:484:41 | ... * ... | size argument |
39+
| test.cpp:491:3:491:8 | call to memcpy | The $@ passed to memcpy is accessed at an excessive offset of 1 element(s) from the $@. | test.cpp:491:10:491:10 | p | write buffer | test.cpp:489:30:489:50 | ... * ... | allocation size base |

0 commit comments

Comments
 (0)