<p></p>
<pre><code>[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
</code></pre>
<p>Here is a master with my commits. As base used <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/5d03c9235f79ce4af35b6f79eddebae9f512f1d3/hovercard" href="https://github.com/kamailio/kamailio/commit/5d03c9235f79ce4af35b6f79eddebae9f512f1d3"><tt>5d03c92</tt></a></p>
<pre><code>[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
</code></pre>
<p>Here Fedora 33 (Not CentOS 8, but same behavior on CentOS8).</p>
<pre><code>(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}
</code></pre>
<p>Relevant <a href="https://github.com/kamailio/kamailio/blob/master/src/modules/pv/pv_core.c#L3617">string</a> in current master.</p>
<p>I will retest on the <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/kamailio/kamailio/commit/14d92c0d7ab1229996176b131ab8edcabc3a5717/hovercard" href="https://github.com/kamailio/kamailio/commit/14d92c0d7ab1229996176b131ab8edcabc3a5717"><tt>14d92c0</tt></a> commit.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2788#issuecomment-868994087">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZOCXJ3AQYA4FO2KI7TTUXBQ5ANCNFSM47KPNKGA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJBRJTJGAU7LOOH7ADTUXBQ5A5CNFSM47KPNKGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGPF4YJY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2788#issuecomment-868994087",
"url": "https://github.com/kamailio/kamailio/issues/2788#issuecomment-868994087",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>