|
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 | |
| 1 | +| test.cpp:258:3:258:8 | call to strchr | The $@ passed to strchr is 5 bytes, but an offset of 5 bytes is used to access it. | test.cpp:258:10:258:21 | ... + ... | read buffer | test.cpp:258:10:258:21 | ... + ... | | |
| 2 | +| test.cpp:262:5:262: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:262:22:262:28 | test1 | read buffer | test.cpp:262:12:262:19 | ca5_good | write buffer | |
| 3 | +| test.cpp:268:5:268: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:268:24:268:31 | ca6_good | read buffer | test.cpp:268:12:268:19 | call to get_ca_5 | write buffer | |
| 4 | +| test.cpp:273:5:273: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:273:22:273:29 | ca6_good | read buffer | test.cpp:273:12:273:19 | ca5_good | write buffer | |
| 5 | +| test.cpp:279:5:279: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:279:24:279:31 | ca6_good | read buffer | test.cpp:279:12:279:19 | call to get_ca_5 | write buffer | |
| 6 | +| test.cpp:311:5:311:10 | call to memcpy | The $@ passed to memcpy is accessed at an excessive offset of 1 element(s) from the $@. | test.cpp:311:12:311:13 | p2 | write buffer | test.cpp:304:29:304:34 | call to strlen | allocation size base | |
| 7 | +| test.cpp:337:5:337:10 | call to strcat | The $@ passed to strcat might not be null-terminated. | test.cpp:337:12:337:15 | buf1 | argument | test.cpp:337:12:337:15 | buf1 | | |
| 8 | +| test.cpp:342:5:342: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:342:24:342:30 | 12345 | read buffer | test.cpp:342:12:342:19 | call to get_ca_5 | write buffer | |
| 9 | +| test.cpp:344:5:344: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:344:28:344:33 | 1234 | read buffer | test.cpp:344:12:344:25 | ... + ... | write buffer | |
| 10 | +| test.cpp:362:5:362:12 | call to mbstowcs | The size of the $@ passed to mbstowcs is 512 bytes, but the $@ is 2048 bytes. | test.cpp:362:14:362:17 | wbuf | write buffer | test.cpp:362:26:362:37 | sizeof(<expr>) | size argument | |
| 11 | +| test.cpp:364:5:364:12 | call to mbstowcs | The $@ passed to mbstowcs might not be null-terminated. | test.cpp:364:20:364:23 | buf2 | argument | test.cpp:364:20:364:23 | buf2 | | |
| 12 | +| test.cpp:374:5:374:12 | call to wcstombs | The size of the $@ passed to wcstombs is 128 bytes, but the $@ is 512 bytes. | test.cpp:374:14:374:16 | buf | write buffer | test.cpp:374:25:374:36 | sizeof(<expr>) | size argument | |
| 13 | +| test.cpp:374:5:374: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:374:19:374:22 | wbuf | read buffer | test.cpp:374:14:374:16 | buf | write buffer | |
| 14 | +| test.cpp:377:5:377:12 | call to wcstombs | The size of the $@ passed to wcstombs is 127 bytes, but the $@ is 128 bytes. | test.cpp:377:14:377:20 | ... + ... | write buffer | test.cpp:377:33:377:43 | sizeof(<expr>) | size argument | |
| 15 | +| test.cpp:377:5:377: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:377:23:377:30 | ... + ... | read buffer | test.cpp:377:14:377:20 | ... + ... | write buffer | |
| 16 | +| test.cpp:386:5:386:10 | call to mbtowc | The size of the $@ passed to mbtowc is 2 bytes, but the $@ is 3 bytes. | test.cpp:386:16:386:18 | buf | read buffer | test.cpp:386:21:386:35 | ... + ... | size argument | |
| 17 | +| test.cpp:394:5:394:9 | call to mblen | The size of the $@ passed to mblen is 3 bytes, but the $@ is 4 bytes. | test.cpp:394:11:394:13 | buf | read buffer | test.cpp:394:16:394:30 | ... + ... | size argument | |
| 18 | +| test.cpp:395:5:395:9 | call to mblen | The size of the $@ passed to mblen is 5 bytes, but the $@ is 6 bytes. | test.cpp:395:19:395:24 | call to malloc | read buffer | test.cpp:395:30:395:44 | ... * ... | size argument | |
| 19 | +| test.cpp:403:5:403:10 | call to memchr | The size of the $@ passed to memchr is 128 bytes, but the $@ is 129 bytes. | test.cpp:403:12:403:14 | buf | read buffer | test.cpp:403:20:403:34 | ... + ... | size argument | |
| 20 | +| test.cpp:404:5:404:10 | call to memset | The size of the $@ passed to memset is 128 bytes, but the $@ is 129 bytes. | test.cpp:404:12:404:14 | buf | write buffer | test.cpp:404:20:404:34 | ... + ... | size argument | |
| 21 | +| test.cpp:406:5:406:10 | call to memchr | The $@ passed to memchr is null. | test.cpp:406:12:406:15 | 0 | argument | test.cpp:406:12:406:15 | 0 | | |
| 22 | +| test.cpp:413:5:413:12 | call to strftime | The size of the $@ passed to strftime is 128 bytes, but the $@ is 129 bytes. | test.cpp:413:14:413:16 | buf | write buffer | test.cpp:413:19:413:33 | ... + ... | size argument | |
| 23 | +| test.cpp:415:5:415:12 | call to strftime | The size of the $@ passed to strftime is 127 bytes, but the $@ is 128 bytes. | test.cpp:415:14:415:20 | ... + ... | write buffer | test.cpp:415:23:415:33 | sizeof(<expr>) | size argument | |
| 24 | +| test.cpp:423:5:423:12 | call to wcsftime | The size of the $@ passed to wcsftime is 512 bytes, but the $@ is 520 bytes. | test.cpp:423:14:423:17 | wbuf | write buffer | test.cpp:423:20:423:53 | ... + ... | size argument | |
| 25 | +| test.cpp:427:5:427:12 | call to wcsftime | The size of the $@ passed to wcsftime is 508 bytes, but the $@ is 512 bytes. | test.cpp:427:14:427:21 | ... + ... | write buffer | test.cpp:427:24:427:53 | ... / ... | size argument | |
| 26 | +| test.cpp:429:5:429:12 | call to wcsftime | The size of the $@ passed to wcsftime is 512 bytes, but the $@ is 2048 bytes. | test.cpp:429:14:429:17 | wbuf | write buffer | test.cpp:429:20:429:31 | sizeof(<expr>) | size argument | |
| 27 | +| test.cpp:437:5:437:11 | call to strxfrm | The size of the $@ passed to strxfrm is 64 bytes, but the $@ is 65 bytes. | test.cpp:437:13:437:15 | buf | write buffer | test.cpp:437:25:437:39 | ... + ... | size argument | |
| 28 | +| test.cpp:439:5:439:11 | call to strxfrm | The $@ passed to strxfrm might not be null-terminated. | test.cpp:439:22:439:25 | buf2 | argument | test.cpp:439:22:439:25 | buf2 | | |
| 29 | +| test.cpp:448:5:448:11 | call to strncat | The size of the $@ passed to strncat is 32 bytes, but the $@ is 33 bytes. | test.cpp:448:18:448:21 | buf2 | read buffer | test.cpp:448:24:448:39 | ... + ... | size argument | |
| 30 | +| test.cpp:451:5:451:11 | call to strncat | The size of the $@ passed to strncat is 31 bytes, but the $@ is 64 bytes. | test.cpp:451:18:451:25 | ... + ... | read buffer | test.cpp:451:28:451:43 | ... * ... | size argument | |
| 31 | +| test.cpp:459:5:459:11 | call to wcsxfrm | The size of the $@ passed to wcsxfrm is 256 bytes, but the $@ is 260 bytes. | test.cpp:459:13:459:16 | wbuf | write buffer | test.cpp:459:27:459:60 | ... + ... | size argument | |
| 32 | +| test.cpp:461:5:461:11 | call to wcsxfrm | The $@ passed to wcsxfrm might not be null-terminated. | test.cpp:461:23:461:27 | wbuf2 | argument | test.cpp:461:23:461:27 | wbuf2 | | |
| 33 | +| test.cpp:474:5:474:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 65 bytes. | test.cpp:474:12:474:14 | buf | write buffer | test.cpp:474:23:474:37 | ... + ... | size argument | |
| 34 | +| test.cpp:474:5:474:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 65 bytes. | test.cpp:474:17:474:20 | buf2 | read buffer | test.cpp:474:23:474:37 | ... + ... | size argument | |
| 35 | +| test.cpp:476:5:476:10 | call to memcpy | The size of the $@ passed to memcpy is 63 bytes, but the $@ is 64 bytes. | test.cpp:476:12:476:18 | ... + ... | write buffer | test.cpp:476:27:476:37 | sizeof(<expr>) | size argument | |
| 36 | +| test.cpp:476:5:476: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:476:21:476:24 | buf2 | read buffer | test.cpp:476:12:476:18 | ... + ... | write buffer | |
| 37 | +| test.cpp:477:5:477:10 | call to memcpy | The size of the $@ passed to memcpy is 63 bytes, but the $@ is 128 bytes. | test.cpp:477:17:477:24 | ... + ... | read buffer | test.cpp:477:27:477:41 | ... * ... | size argument | |
| 38 | +| test.cpp:477:5:477:10 | call to memcpy | The size of the $@ passed to memcpy is 64 bytes, but the $@ is 128 bytes. | test.cpp:477:12:477:14 | buf | write buffer | test.cpp:477:27:477:41 | ... * ... | size argument | |
| 39 | +| test.cpp:484:3:484:8 | call to memcpy | The $@ passed to memcpy is accessed at an excessive offset of 1 element(s) from the $@. | test.cpp:484:10:484:10 | p | write buffer | test.cpp:482:30:482:50 | ... * ... | allocation size base | |
0 commit comments