[Home]

Summary:ASTERISK-30171: asttest (lua dependencies) / sipp: Compiler warnings
Reporter:N A (InterLinked)Labels:
Date Opened:2022-08-08 18:30:29Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:Tests/testsuite
Versions:GIT Frequency of
Occurrence
Constant
Related
Issues:
Environment:Debian 11Attachments:
Description:Some recent compiler warnings that have cropped up for sipp and a couple other test suite tools:

{noformat}
make[2]: Entering directory '/usr/src/testsuite/asttest/lib/lua/luasocket-2.0.2/src'
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o luasocket.o luasocket.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o timeout.o timeout.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o buffer.o buffer.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o io.o io.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o auxiliar.o auxiliar.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o options.o options.c
options.c: In function ‘opt_meth_setoption’:
options.c:37:43: warning: ‘%.35s’ directive writing up to 35 bytes into a region of size 25 [-Wformat-overflow=]
  37 |         sprintf(msg, "unsupported option `%.35s'", name);
     |                                           ^~~~~
options.c:37:9: note: ‘sprintf’ output between 22 and 57 bytes into a destination of size 45
  37 |         sprintf(msg, "unsupported option `%.35s'", name);
     |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o inet.o inet.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o tcp.o tcp.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o udp.o udp.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o except.o except.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o select.o select.c
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o usocket.o usocket.c
gcc  -O -shared -fpic -o socket.so.2.0.2 luasocket.o timeout.o buffer.o io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.o usocket.o
gcc `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -DLUASOCKET_DEBUG  -pedantic -Wall -O2 -fpic   -c -o mime.o mime.c
gcc  -O -shared -fpic -o mime.so.1.0.2 mime.o
ar rc luasocket.a luasocket.o timeout.o buffer.o io.o auxiliar.o options.o inet.o tcp.o udp.o except.o select.o usocket.o
ranlib  luasocket.a
make[2]: Leaving directory '/usr/src/testsuite/asttest/lib/lua/luasocket-2.0.2/src'
make[1]: Leaving directory '/usr/src/testsuite/asttest/lib/lua/luasocket-2.0.2'
rm -rf lib/lua/luaposix-5.1.4
tar -C lib/lua -zxf lib/lua/luaposix-5.1.4.tar.gz
patch -p1 -d lib/lua/luaposix-5.1.4 < tools/luaposix.diff
patching file lposix.c
patching file lposix.h
patching file Makefile
touch lib/lua/luaposix-patched.stamp
make -C lib/lua/luaposix-5.1.4
make[1]: Entering directory '/usr/src/testsuite/asttest/lib/lua/luaposix-5.1.4'
cc  -fPIC `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -pedantic -Wall  -c -o lposix.o lposix.c
In file included from lposix.c:47:
modemuncher.c: In function ‘mode_munch’:
modemuncher.c:238:10: warning: operation on ‘*mode’ may be undefined [-Wsequence-point]
 238 |    *mode = *mode |= ch_mode & affected_bits;
     |    ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modemuncher.c:242:10: warning: operation on ‘*mode’ may be undefined [-Wsequence-point]
 242 |    *mode = *mode &= ~(ch_mode & affected_bits);
     |    ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc  -o posix.so -shared lposix.o -lcrypt
make[1]: Leaving directory '/usr/src/testsuite/asttest/lib/lua/luaposix-5.1.4'
cc -g -D_GNU_SOURCE -Wall `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -Iinclude -c -o lib/lua.o \
-DLUAFILESYSTEM_HEADER=\"../lib/lua/luafilesystem-1.4.2/src/lfs.h\" \
-DLUASOCKET_HEADER=\"../lib/lua/luasocket-2.0.2/src/luasocket.h\" \
-DLUAPOSIX_HEADER=\"../lib/lua/luaposix-5.1.4/lposix.h\" \
       lib/lua.c
cc -g -D_GNU_SOURCE -Wall `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -Iinclude   -c -o lib/testsuite.o lib/testsuite.c
lib/testsuite.c: In function ‘ts_init’:
lib/testsuite.c:55:64: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
  55 |   snprintf(ts->asterisk_path, sizeof(ts->asterisk_path), "%s/%s", cwd, opts->asterisk_path);
     |                                                                ^
lib/testsuite.c:55:3: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
  55 |   snprintf(ts->asterisk_path, sizeof(ts->asterisk_path), "%s/%s", cwd, opts->asterisk_path);
     |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lib/testsuite.c: In function ‘ts_init_single’:
lib/testsuite.c:85:64: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
  85 |   snprintf(ts->asterisk_path, sizeof(ts->asterisk_path), "%s/%s", cwd, opts->asterisk_path);
     |                                                                ^
lib/testsuite.c:85:3: note: ‘snprintf’ output 2 or more bytes (assuming 4097) into a destination of size 4096
  85 |   snprintf(ts->asterisk_path, sizeof(ts->asterisk_path), "%s/%s", cwd, opts->asterisk_path);
     |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc -g -D_GNU_SOURCE -Wall `pkg-config --cflags lua5.1 2> /dev/null || pkg-config --cflags lua-5.1 2> /dev/null || pkg-config --cflags lua 2> /dev/null` -Iinclude   -c -o lib/testutils.o lib/testutils.c
cc -D_GNU_SOURCE -Wall -o tools/mkstring tools/mkstring.c
luac -o lib/lua/testlib.luac lib/lua/testlib.lua



src/auth.cpp: In function ‘int createAuthHeaderMD5(const char*, const char*, int, const char*, const char*, const char*, const char*, const char*, char*)’:
src/auth.cpp:392:40: warning: ‘%s’ directive output may be truncated writing up to 2048 bytes into a region of size 2043 [-Wformat-truncation=]
 392 |     snprintf(tmp, sizeof(tmp), ",uri=\"%s\"", sipuri);
     |                                        ^~     ~~~~~~
src/auth.cpp:392:13: note: ‘snprintf’ output between 8 and 2056 bytes into a destination of size 2049
 392 |     snprintf(tmp, sizeof(tmp), ",uri=\"%s\"", sipuri);
     |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/auth.cpp:414:44: warning: ‘%s’ directive output may be truncated writing up to 2048 bytes into a region of size 2041 [-Wformat-truncation=]
 414 |     snprintf(tmp2, sizeof(tmp2), ",nonce=\"%s\",response=\"%s\",algorithm=%s", nonce, resp_hex, algo);
     |                                            ^~                                  ~~~~~
src/auth.cpp:414:13: note: ‘snprintf’ output 33 or more bytes (assuming 2113) into a destination of size 2049
 414 |     snprintf(tmp2, sizeof(tmp2), ",nonce=\"%s\",response=\"%s\",algorithm=%s", nonce, resp_hex, algo);
     |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f src/.deps/sipp_unittest-auth.Tpo src/.deps/sipp_unittest-auth.Po
gcc -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include  -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__LINUX -I./include -Wall -pedantic -DGTEST=1 -I./gtest/include -I./gmock/include -I./gtest -I./gmock  -w -std=gnu11 -D__LINUX -MT src/sipp_unittest-comp.o -MD -MP -MF src/.deps/sipp_unittest-comp.Tpo -c -o src/sipp_unittest-comp.o `test -f 'src/comp.c' || echo './'`src/comp.c
mv -f src/.deps/sipp_unittest-comp.Tpo src/.deps/sipp_unittest-comp.Po
g++ -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include  -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__LINUX -I./include -Wall -pedantic -DGTEST=1 -I./gtest/include -I./gmock/include -I./gtest -I./gmock  -g -O2 -MT src/sipp_unittest-call.o -MD -MP -MF src/.deps/sipp_unittest-call.Tpo -c -o src/sipp_unittest-call.o `test -f 'src/call.cpp' || echo './'`src/call.cpp
src/call.cpp: In member function ‘virtual void call::dump()’:
src/call.cpp:684:31: warning: ‘%s’ directive output may be truncated writing up to 2048 bytes into a region of size 64 [-Wformat-truncation=]
 684 |         snprintf(tmpbuf, 64, "%s (next retrans %u)", s, next_retrans);
     |                               ^~                     ~
src/call.cpp:684:30: note: directive argument in the range [1, 4294967295]
 684 |         snprintf(tmpbuf, 64, "%s (next retrans %u)", s, next_retrans);
     |                              ^~~~~~~~~~~~~~~~~~~~~~
src/call.cpp:684:17: note: ‘snprintf’ output between 18 and 2075 bytes into a destination of size 64
 684 |         snprintf(tmpbuf, 64, "%s (next retrans %u)", s, next_retrans);
     |         ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



v -f src/.deps/sipp_unittest-screen.Tpo src/.deps/sipp_unittest-screen.Po
g++ -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include  -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__LINUX -I./include -Wall -pedantic -DGTEST=1 -I./gtest/include -I./gmock/include -I./gtest -I./gmock  -g -O2 -MT src/sipp_unittest-socket.o -MD -MP -MF src/.deps/sipp_unittest-socket.Tpo -c -o src/sipp_unittest-socket.o `test -f 'src/socket.cpp' || echo './'`src/socket.cpp
src/socket.cpp: In function ‘int open_connections()’:
src/socket.cpp:2363:46: warning: ‘%s’ directive writing up to 126 bytes into a region of size 41 [-Wformat-overflow=]
2363 |                 sprintf(remote_ip_escaped, "[%s]", remote_ip);
     |                                              ^~    ~~~~~~~~~
src/socket.cpp:2363:24: note: ‘sprintf’ output between 3 and 129 bytes into a destination of size 42
2363 |                 sprintf(remote_ip_escaped, "[%s]", remote_ip);
     |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/socket.cpp:2440:41: warning: ‘%s’ directive writing up to 126 bytes into a region of size 41 [-Wformat-overflow=]
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |                                         ^~    ~~~~~~~~
src/socket.cpp:2440:20: note: ‘sprintf’ output between 3 and 129 bytes into a destination of size 42
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/socket.cpp:2440:41: warning: ‘%s’ directive writing up to 126 bytes into a region of size 41 [-Wformat-overflow=]
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |                                         ^~    ~~~~~~~~
src/socket.cpp:2440:20: note: ‘sprintf’ output between 3 and 129 bytes into a destination of size 42
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/socket.cpp:2440:41: warning: ‘%s’ directive writing up to 126 bytes into a region of size 41 [-Wformat-overflow=]
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |                                         ^~    ~~~~~~~~
src/socket.cpp:2440:20: note: ‘sprintf’ output between 3 and 129 bytes into a destination of size 42
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f src/.deps/sipp_unittest-socket.Tpo src/.deps/sipp_unittest-socket.Po




      ssl_ctx = SSL_CTX_new(TLSv1_method());
     |                                            ^
In file included from /usr/include/openssl/e_os2.h:13,
                from /usr/include/openssl/bio.h:13,
                from ./include/sslsocket.hpp:23,
                from ./include/socket.hpp:24,
                from ./include/sipp.hpp:73,
                from src/sslsocket.cpp:20:
/usr/include/openssl/ssl.h:1877:1: note: declared here
1877 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
     | ^~~~~~~~~~~~~~~~~~
src/sslsocket.cpp:196:46: warning: ‘const SSL_METHOD* TLSv1_1_method()’ is deprecated [-Wdeprecated-declarations]
 196 |         ssl_ctx = SSL_CTX_new(TLSv1_1_method());
     |                                              ^
In file included from /usr/include/openssl/e_os2.h:13,
                from /usr/include/openssl/bio.h:13,
                from ./include/sslsocket.hpp:23,
                from ./include/socket.hpp:24,
                from ./include/sipp.hpp:73,
                from src/sslsocket.cpp:20:
/usr/include/openssl/ssl.h:1883:1: note: declared here
1883 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */
     | ^~~~~~~~~~~~~~~~~~
src/sslsocket.cpp:198:46: warning: ‘const SSL_METHOD* TLSv1_2_method()’ is deprecated [-Wdeprecated-declarations]
 198 |         ssl_ctx = SSL_CTX_new(TLSv1_2_method());
     |                                              ^
In file included from /usr/include/openssl/e_os2.h:13,
                from /usr/include/openssl/bio.h:13,
                from ./include/sslsocket.hpp:23,
                from ./include/socket.hpp:24,
                from ./include/sipp.hpp:73,
                from src/sslsocket.cpp:20:
/usr/include/openssl/ssl.h:1889:1: note: declared here
1889 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */
     | ^~~~~~~~~~~~~~~~~~

cho > .autoclean
/usr/bin/gmake  all-am
gmake[1]: Entering directory '/usr/src/sipp'
g++ -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include  -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__LINUX -I./include -Wall -pedantic  -g -O2 -MT src/sipp-actions.o -MD -MP -MF src/.deps/sipp-actions.Tpo -c -o src/sipp-actions.o `test -f 'src/actions.cpp' || echo './'`src/actions.cpp
mv -f src/.deps/sipp-actions.Tpo src/.deps/sipp-actions.Po
g++ -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include  -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__LINUX -I./include -Wall -pedantic  -g -O2 -MT src/sipp-auth.o -MD -MP -MF src/.deps/sipp-auth.Tpo -c -o src/sipp-auth.o `test -f 'src/auth.cpp' || echo './'`src/auth.cpp
src/auth.cpp: In function ‘int createAuthHeaderMD5(const char*, const char*, int, const char*, const char*, const char*, const char*, const char*, char*)’:
src/auth.cpp:392:40: warning: ‘%s’ directive output may be truncated writing up to 2048 bytes into a region of size 2043 [-Wformat-truncation=]
 392 |     snprintf(tmp, sizeof(tmp), ",uri=\"%s\"", sipuri);
     |                                        ^~     ~~~~~~
src/auth.cpp:392:13: note: ‘snprintf’ output between 8 and 2056 bytes into a destination of size 2049
 392 |     snprintf(tmp, sizeof(tmp), ",uri=\"%s\"", sipuri);
     |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/auth.cpp:414:44: warning: ‘%s’ directive output may be truncated writing up to 2048 bytes into a region of size 2041 [-Wformat-truncation=]
 414 |     snprintf(tmp2, sizeof(tmp2), ",nonce=\"%s\",response=\"%s\",algorithm=%s", nonce, resp_hex, algo);
     |                                            ^~                                  ~~~~~
src/auth.cpp:414:13: note: ‘snprintf’ output 33 or more bytes (assuming 2113) into a destination of size 2049
 414 |     snprintf(tmp2, sizeof(tmp2), ",nonce=\"%s\",response=\"%s\",algorithm=%s", nonce, resp_hex, algo);
     |     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f src/.deps/sipp-auth.Tpo src/.deps/sipp-auth.Po
gcc -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include  -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__LINUX -I./include -Wall -pedantic  -w -std=gnu11 -D__LINUX -MT src/sipp-comp.o -MD -MP -MF src/.deps/sipp-comp.Tpo -c -o src/sipp-comp.o `test -f 'src/comp.c' || echo './'`src/comp.c
mv -f src/.deps/sipp-comp.Tpo src/.deps/sipp-comp.Po
g++ -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include  -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__LINUX -I./include -Wall -pedantic  -g -O2 -MT src/sipp-call.o -MD -MP -MF src/.deps/sipp-call.Tpo -c -o src/sipp-call.o `test -f 'src/call.cpp' || echo './'`src/call.cpp
src/call.cpp: In member function ‘virtual void call::dump()’:
src/call.cpp:684:31: warning: ‘%s’ directive output may be truncated writing up to 2048 bytes into a region of size 64 [-Wformat-truncation=]
 684 |         snprintf(tmpbuf, 64, "%s (next retrans %u)", s, next_retrans);
     |                               ^~                     ~
src/call.cpp:684:30: note: directive argument in the range [1, 4294967295]
 684 |         snprintf(tmpbuf, 64, "%s (next retrans %u)", s, next_retrans);
     |                              ^~~~~~~~~~~~~~~~~~~~~~
src/call.cpp:684:17: note: ‘snprintf’ output between 18 and 2075 bytes into a destination of size 64
 684 |         snprintf(tmpbuf, 64, "%s (next retrans %u)", s, next_retrans);


rc/sipp-screen.o -MD -MP -MF src/.deps/sipp-screen.Tpo -c -o src/sipp-screen.o `test -f 'src/screen.cpp' || echo './'`src/screen.cpp
mv -f src/.deps/sipp-screen.Tpo src/.deps/sipp-screen.Po
g++ -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_SCTP -DHAVE_GSL -DHAVE_EPOLL -I. -I./include  -D_BSD_SOURCE -D_DEFAULT_SOURCE -D__LINUX -I./include -Wall -pedantic  -g -O2 -MT src/sipp-socket.o -MD -MP -MF src/.deps/sipp-socket.Tpo -c -o src/sipp-socket.o `test -f 'src/socket.cpp' || echo './'`src/socket.cpp
src/socket.cpp: In function ‘int open_connections()’:
src/socket.cpp:2363:46: warning: ‘%s’ directive writing up to 126 bytes into a region of size 41 [-Wformat-overflow=]
2363 |                 sprintf(remote_ip_escaped, "[%s]", remote_ip);
     |                                              ^~    ~~~~~~~~~
src/socket.cpp:2363:24: note: ‘sprintf’ output between 3 and 129 bytes into a destination of size 42
2363 |                 sprintf(remote_ip_escaped, "[%s]", remote_ip);
     |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/socket.cpp:2440:41: warning: ‘%s’ directive writing up to 126 bytes into a region of size 41 [-Wformat-overflow=]
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |                                         ^~    ~~~~~~~~
src/socket.cpp:2440:20: note: ‘sprintf’ output between 3 and 129 bytes into a destination of size 42
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/socket.cpp:2440:41: warning: ‘%s’ directive writing up to 126 bytes into a region of size 41 [-Wformat-overflow=]
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |                                         ^~    ~~~~~~~~
src/socket.cpp:2440:20: note: ‘sprintf’ output between 3 and 129 bytes into a destination of size 42
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/socket.cpp:2440:41: warning: ‘%s’ directive writing up to 126 bytes into a region of size 41 [-Wformat-overflow=]
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |                                         ^~    ~~~~~~~~
src/socket.cpp:2440:20: note: ‘sprintf’ output between 3 and 129 bytes into a destination of size 42
2440 |             sprintf(local_ip_escaped, "[%s]", local_ip);
     |             ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mv -f src/.deps/sipp-socket.Tpo src/.deps/sipp-socket.Po
g++ -DHAVE_CONFIG_H -DUSE_TLS -DUSE_OPENSSL -DPCAPPLAY -DRTP_STREAM -DUSE_S
{noformat}
Comments: