sergey-safarov created an issue (kamailio/kamailio#4439)

```
[  0%] Building C object src/modules/ctl/CMakeFiles/ctl.dir/ctrl_socks.c.o
cd /root/rpmbuild/BUILD/kamailio-6.1.0-dev1/redhat-linux-build/src/modules/ctl 
&& /usr/bin/gcc -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DARCH=\"x86_64\" 
-DCC_GCC_LIKE_ASM -DCFG_DIR=\"/etc/kamailio/\" -DCOMPILER="\"gcc 14.3.1\"" 
-DCTL_SYSTEM_MALLOC -DDBG_SR_MEMORY -DDISABLE_NAGLE -DDNS_IP_HACK -DFAST_LOCK 
-DF_MALLOC -DHAVE_ALLOCA_H -DHAVE_EPOLL -DHAVE_GETHOSTBYNAME2 -DHAVE_IP_MREQN 
-DHAVE_MSGHDR_MSG_CONTROL -DHAVE_MSG_NOSIGNAL -DHAVE_RESOLV_RES 
-DHAVE_SCHED_SETSCHEDULER -DHAVE_SCHED_YIELD -DHAVE_SELECT -DHAVE_SIGIO_RT 
-DHAVE_TIMEGM -DHAVE_UNION_SEMUN -DKSR_PTHREAD_MUTEX_SHARED -DMALLOC_STATS 
-DMEM_JOIN_FREE -DMOD_NAME=\"ctl\" -DMOD_NAMEID=ctl -DNAME=\"kamailio\" 
-DOS=Linux -DOS_QUOTED=\"Linux\" -DPKG_MALLOC -DQ_MALLOC 
-DRUN_DIR=\"/run/kamailio\" -DSHARE_DIR=\"/usr/share/kamailio/\" -DSHM_MMAP 
-DSIGINFO64_WORKAROUND -DSTATISTICS -DTLSF_MALLOC -DTLS_HOOKS -DUSE_CORE_STATS 
-DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLOCKLIST -DUSE_FIFO -DUSE_FUTEX 
-DUSE_MCAST -DUSE_NAPTR -DUSE_RAW_SOCKS -DUSE_SCTP -DUSE_TCP -DUSE_TLS 
-DVERSION=\"6.1.0-dev1\" -DVERSIONVAL=6001000 -D__CPU_x86_64 -D__OS_linux 
-Dctl_EXPORTS  -O2 -flto=auto -ffat-lto-objects -fexceptions -g 
-grecord-gcc-switches -pipe -Wall -Werror=format-security 
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64-v3 
-mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection 
-fcf-protection -mtls-dialect=gnu2 -DNDEBUG -std=gnu11 -fPIC 
-ffile-prefix-map=/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/= 
-fPIC -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops 
-ftree-vectorize -fno-strict-overflow -mtune=generic -MD -MT 
src/modules/ctl/CMakeFiles/ctl.dir/ctrl_socks.c.o -MF 
CMakeFiles/ctl.dir/ctrl_socks.c.o.d -o CMakeFiles/ctl.dir/ctrl_socks.c.o -c 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/ctrl_socks.c
In function ‘binrpc_build_hdr’,
    inlined from ‘rpc_send’ at 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:592:18:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc.h:335:20: 
warning: writing 16 bytes into a region of size 8 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c: In 
function ‘rpc_send’:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [2, 10] into destination object ‘hdr.5’ of size 10
  575 |         static unsigned char hdr[BINRPC_MAX_HDR_SIZE];
      |                              ^~~
In function ‘binrpc_build_hdr’,
    inlined from ‘rpc_send’ at 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:592:18:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc.h:335:20: 
warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c: In 
function ‘rpc_send’:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [42, 2147483628] into destination object ‘hdr.5’ of size 10
  575 |         static unsigned char hdr[BINRPC_MAX_HDR_SIZE];
      |                              ^~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset 10 into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [42, 2147483628] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset 10 into destination object ‘hdr.5’ of size 10
In function ‘binrpc_build_hdr’,
    inlined from ‘rpc_send’ at 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:592:18:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc.h:335:20: 
warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c: In 
function ‘rpc_send’:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [43, 2147483629] into destination object ‘hdr.5’ of size 10
  575 |         static unsigned char hdr[BINRPC_MAX_HDR_SIZE];
      |                              ^~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [11, 13] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [43, 2147483629] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [11, 13] into destination object ‘hdr.5’ of size 10
In function ‘binrpc_build_hdr’,
    inlined from ‘rpc_send’ at 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:592:18:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc.h:335:20: 
warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c: In 
function ‘rpc_send’:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [44, 2147483630] into destination object ‘hdr.5’ of size 10
  575 |         static unsigned char hdr[BINRPC_MAX_HDR_SIZE];
      |                              ^~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [12, 14] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [44, 2147483630] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [12, 14] into destination object ‘hdr.5’ of size 10
In function ‘binrpc_build_hdr’,
    inlined from ‘rpc_send’ at 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:592:18:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc.h:335:20: 
warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c: In 
function ‘rpc_send’:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [45, 2147483631] into destination object ‘hdr.5’ of size 10
  575 |         static unsigned char hdr[BINRPC_MAX_HDR_SIZE];
      |                              ^~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [13, 15] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [45, 2147483631] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [13, 15] into destination object ‘hdr.5’ of size 10
In function ‘binrpc_build_hdr’,
    inlined from ‘rpc_send’ at 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:592:18:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc.h:335:20: 
warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c: In 
function ‘rpc_send’:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [46, 2147483632] into destination object ‘hdr.5’ of size 10
  575 |         static unsigned char hdr[BINRPC_MAX_HDR_SIZE];
      |                              ^~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [14, 16] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [46, 2147483632] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [14, 16] into destination object ‘hdr.5’ of size 10
In function ‘binrpc_build_hdr’,
    inlined from ‘rpc_send’ at 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:592:18:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc.h:335:20: 
warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c: In 
function ‘rpc_send’:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [47, 2147483633] into destination object ‘hdr.5’ of size 10
  575 |         static unsigned char hdr[BINRPC_MAX_HDR_SIZE];
      |                              ^~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [15, 17] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [47, 2147483633] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [15, 17] into destination object ‘hdr.5’ of size 10
In function ‘binrpc_build_hdr’,
    inlined from ‘rpc_send’ at 
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:592:18:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc.h:335:20: 
warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=]
  335 |                 *p = (unsigned char)(body_len >> ((len_len - 1) * 8));
      |                 ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c: In 
function ‘rpc_send’:
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [48, 2147483634] into destination object ‘hdr.5’ of size 10
  575 |         static unsigned char hdr[BINRPC_MAX_HDR_SIZE];
      |                              ^~~
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [16, 18] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [48, 2147483634] into destination object ‘hdr.5’ of size 10
/root/rpmbuild/BUILD/kamailio-6.1.0-dev1/src/modules/ctl/binrpc_run.c:575:30: 
note: at offset [16, 18] into destination object ‘hdr.5’ of size 10
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4439
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to