Snippets for gammu 1.42.0 from Alpine ppc64le
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/community/gammu/gammu-1.42.0-r1.log.
-
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/smsd/services/files.c:597:67: warning: '%s' directive writing up to 399 bytes into a region of size between 25 and 77 [-Wformat-overflow=] 597 | "OUTC%04d%02d%02d_%02d%02d%02d_00_%s_sms%d.%s", | ^~ 598 | 1900 + timeinfo->tm_year, timeinfo->tm_mon + 1, timeinfo->tm_mday, timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec, buffer2, j, ext); | ~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/smsd/services/files.c:94:67: warning: '%s' directive writing up to 399 bytes into a region of size between 18 and 81 [-Wformat-overflow=] 94 | "IN%02d%02d%02d_%02d%02d%02d_%02i_%s_%02i.%s", | ^~ 95 | sms->SMS[i].DateTime.Year, sms->SMS[i].DateTime.Month, sms->SMS[i].DateTime.Day, 96 | sms->SMS[i].DateTime.Hour, sms->SMS[i].DateTime.Minute, sms->SMS[i].DateTime.Second, j, buffer2, i, ext); | ~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/smsd/core.c:1929:17: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 1929 | strncpy(Config->Status->PhoneID, Config->PhoneID, sizeof(Config->Status->PhoneID)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/libgammu/phone/at/atgen.c:2639:23: warning: '%s' directive writing up to 99 bytes into a region of size 91 [-Wformat-overflow=] 2639 | len = sprintf(buffer, "AT+CSCS=\"%s\"\r", buffer3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/libgammu/phone/at/atgen.c:3869:31: warning: '%i' directive writing between 1 and 11 bytes into a region of size between 0 and 10 [-Wformat-overflow=] 3869 | len = sprintf(req, "AT+CPBR=%i,%i\r", start, end); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/libgammu/phone/at/atgen.c:3867:31: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 3867 | len = sprintf(req, "AT+CPBR=%i\r", start); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/libgammu/phone/at/atgen.c:4299:31: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 4299 | len = sprintf(req, "AT+MPBR=%i\r", entry->Location + Priv->MotorolaFirstMemoryEntry - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/libgammu/phone/at/atgen.c:4277:31: warning: '%i' directive writing between 1 and 11 bytes into a region of size 6 [-Wformat-overflow=] 4277 | len = sprintf(req, "AT^SBNR=\"vcf\",%i\r",entry->Location - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/libgammu/phone/at/atgen.c:4315:23: warning: '%i' directive writing between 1 and 11 bytes into a region of size between 0 and 10 [-Wformat-overflow=] 4315 | len = sprintf(req, "AT+CPBR=%i,%i\r", entry->Location + Priv->FirstMemoryEntry - 1, endlocation + Priv->FirstMemoryEntry - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/libgammu/phone/at/atgen.c:4313:23: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 4313 | len = sprintf(req, "AT+CPBR=%i\r", entry->Location + Priv->FirstMemoryEntry - 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/home/buildozer/aports/community/gammu/src/gammu-1.42.0/libgammu/service/backup/backtext.c:119:51: warning: '%s' directive writing up to 999 bytes into a region of size between 987 and 995 [-Wformat-overflow=] 119 | sprintf(buffer3,"%s%02i = %s%c%c",myname,w,buffer2,13,10); | ^~ ~~~~~~~