[asterisk-bugs] [JIRA] (ASTERISK-30450) res_crypto, res_pjsip: build failures on 32-bit architectures
N A (JIRA)
noreply at issues.asterisk.org
Thu Mar 2 15:18:03 CST 2023
N A created ASTERISK-30450:
------------------------------
Summary: res_crypto, res_pjsip: build failures on 32-bit architectures
Key: ASTERISK-30450
URL: https://issues.asterisk.org/jira/browse/ASTERISK-30450
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_crypto, Resources/res_pjsip
Affects Versions: 20.1.0
Environment: Debian 11, i686
Reporter: N A
{noformat}
[LD] res_convert.o -> res_convert.so
[CC] res_crypto.c -> res_crypto.o
res_crypto.c: In function ‘try_load_key.isra’:
res_crypto.c:199:39: warning: ‘%s’ directive output may be truncated writing between 5 and 2147483645 bytes into a region of size 255 [-Wformat-truncation=]
199 | snprintf(ffname, sizeof(ffname), "%s/%s", dir, fname);
| ^~
In file included from /usr/include/stdio.h:867,
from /usr/src/asterisk-20.1.0/include/asterisk/compat.h:49,
from /usr/src/asterisk-20.1.0/include/asterisk.h:22,
from res_crypto.c:34:
/usr/include/i386-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output 7 or more bytes (assuming 2147483647) into a destination of size 256
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[LD] res_crypto.o -> res_crypto.so
[CC] res_curl.c -> res_curl.o
[CC] res_pjsip/pjsip_transport_events.c -> res_pjsip/pjsip_transport_events.o
res_pjsip/pjsip_transport_events.c: In function ‘cli_show_monitors’:
res_pjsip/pjsip_transport_events.c:649:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 7 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
649 | ast_cli(a->fd, " %-46.46s %-10s %-9s %6ld %8" PRIu64 " %s\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/src/asterisk-20.1.0/include/asterisk/compat.h:30,
from /usr/src/asterisk-20.1.0/include/asterisk.h:22,
from res_pjsip/pjsip_transport_events.c:30:
/usr/include/inttypes.h:105:34: note: format string is defined here
105 | # define PRIu64 __PRI64_PREFIX "u"
[CC] res_pjsip/pjsip_transport_management.c -> res_pjsip/pjsip_transport_ma
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list