Snippets for alpine 2.26 from Alpine ppc64le
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/community/alpine/alpine-2.26-r5.log.
-
pop3.c:435:44: warning: '%s' directive writing up to 1023 bytes into a region of size 1017 [-Wformat-overflow=] 435 | sprintf (tmp + strlen (tmp),"/user=\"%s\"}%s",usr,mb.mailbox); | ^~ ~~~ -
canaccess.c:148:47: warning: '%c' directive output may be truncated writing 1 byte into a region of size between 0 and 4096 [-Wformat-truncation=] 148 | snprintf(tmp, sizeof(tmp), "%s%c%s", p, FILE_SEP, file); | ^~ -
debugtime.c:53:50: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 6 [-Wformat-truncation=] 53 | snprintf(datestr, sizeof(datestr), " %d/%d", tm_now->tm_mon+1, tm_now->tm_mday); | ^~ -
mailcap.c:627:62: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 627 | snprintf(tmp_mime_type, sizeof(tmp_mime_type), "%s/%s", body_types[type], subtype); | ^ -
remote.c:1834:53: warning: '%ld' directive output may be truncated writing between 1 and 20 bytes into a region of size 18 [-Wformat-truncation=] 1834 | snprintf(sequence, sizeof(sequence), "1:%ld", nmsgs); | ^~~ -
string.c:1332:68: warning: '%02d' directive output may be truncated writing between 2 and 11 bytes into a region of size between 0 and 17 [-Wformat-truncation=] 1332 | snprintf(datebuf, sizeof(datebuf), "%.3s, %d %.3s %d %02d:%02d:%02d", | ^~~~ -
string.c:1500:43: warning: 'nd' directive output may be truncated writing 2 bytes into a region of size between 0 and 9 [-Wformat-truncation=] 1500 | snprintf(enth, sizeof(enth), "%dnd",i); | ^~ -
string.c:1507:43: warning: 'rd' directive output may be truncated writing 2 bytes into a region of size between 0 and 9 [-Wformat-truncation=] 1507 | snprintf(enth, sizeof(enth), "%drd",i); | ^~ -
string.c:1493:42: warning: 'st' directive output may be truncated writing 2 bytes into a region of size between 0 and 9 [-Wformat-truncation=] 1493 | snprintf(enth, sizeof(enth),"%dst", i); | ^~ -
string.c:1491:42: warning: 'th' directive output may be truncated writing 2 bytes into a region of size between 0 and 8 [-Wformat-truncation=] 1491 | snprintf(enth, sizeof(enth),"%dth", i); | ^~ -
smkeys.c:663:37: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 1023 [-Wformat-truncation=] 649 | m = iobuf; | ~~~~~ -
smkeys.c:674:35: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 1024 [-Wformat-truncation=] 649 | m = iobuf; | ~~~~~ -
attach.c:164:53: warning: '%c' directive output may be truncated writing 1 byte into a region of size between 0 and 500 [-Wformat-truncation=] 164 | snprintf(bfn, sizeof(bfn), "%s%c%.*s", | ^~ -
file.c:162:61: warning: '%s' directive output may be truncated writing up to 500 bytes into a region of size between 31 and 44 [-Wformat-truncation=] 162 | snprintf(prompt, sizeof(prompt), "%s to insert from %s %s: ", | ^~ -
debuging.c:164:63: warning: '%s' directive output may be truncated writing up to 4096 bytes into a region of size 4085 [-Wformat-truncation=] 164 | snprintf(newfname, sizeof(newfname), "Debug file: %s (level=%d imap=%d)", dfile, | ^~ -
fltrname.c:90:51: warning: '" not allowed in file name' directive output may be truncated writing 26 bytes into a region of size between 18 and 80 [-Wformat-truncation=] 90 | "Character \"%s\" after \"%.*s\" not allowed in file name", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ -
colorconf.c:2795:35: warning: ' Color =' directive output may be truncated writing 8 bytes into a region of size between 2 and 1201 [-Wformat-truncation=] 2795 | snprintf(tmp, sizeof(tmp), "%s Color =", name[0] ? name : "?"); | ^~~~~~~~ -
mailcmd.c:3292:74: warning: '%.*s' directive output may be truncated writing up to 461 bytes into a region of size between 459 and 478 [-Wformat-truncation=] 3292 | snprintf(prompt, sizeof(prompt), "Exclude %ld message%s from %.*s", del_count, | ^~~~ -
mailcmd.c:4492:59: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size between 92 and 400 [-Wformat-truncation=] 4492 | snprintf(prompt_buf, sizeof(prompt_buf), "%s%s%s%s%s", p1, p2, p3, p4, p5); | ^~ ~~ -
mailcmd.c:3981:78: warning: '%.*s' directive output may be truncated writing up to 1 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 3981 | snprintf(filename, sizeof(filename), "%.*s%.*s%.*s%.*s%.*d%.*s%.*s", | ^~~~ -
mailpart.c:735:57: warning: '%s' directive output may be truncated writing up to 63 bytes into a region of size between 50 and 51 [-Wformat-truncation=] 735 | snprintf(tmp, sizeof(tmp), "Word to find %s%s%s: ", | ^~ -
takeaddr.c:2431:60: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] 2431 | snprintf(tmp, sizeof(tmp), "Saved %d %s to \"%.*s\"", | ^