[root@safarov-dell kamailio]# /usr/local/sbin/kamailio -v
version: kamailio 5.6.0-dev0 (x86_64/linux) df23ea
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: df23ea 
compiled on 12:48:46 Jun 18 2021 with gcc 10.2.1

Here is a master with my commits. As base used 5d03c92

[root@safarov-dell kamailio]# uname -a
Linux safarov-dell.home 5.9.10-200.fc33.x86_64 #1 SMP Mon Nov 23 18:12:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Here Fedora 33 (Not CentOS 8, but same behavior on CentOS8).

(gdb) frame 1
#1  0x00007ffff639d5df in pv_parse_hdr_name (sp=0x7ffff6ae4c08, in=0x7fffffffd610) at pv_core.c:3594
3594		memcpy(p, in->s, in->len);
(gdb) list
3589		{
3590			LM_ERR("name too long\n");
3591			return -1;
3592		}
3593		p = pv_get_buffer();
3594		memcpy(p, in->s, in->len);
3595		p[in->len] = ':';
3596		s.s = p;
3597		s.len = in->len+1;
3598	
(gdb) p p
$1 = 0x82be18 <__func__.9> "pv_init_buffer"
(gdb) p in->s
$2 = 0x7ffff6ae4c6e "X-CID)[0])"
(gdb) p in
$3 = (str *) 0x7fffffffd610
(gdb) p *in
$4 = {s = 0x7ffff6ae4c6e "X-CID)[0])", len = 5}

Relevant string in current master.

I will retest on the 14d92c0 commit.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.