<p></p>
<blockquote>
<p dir="auto">Those patches were suppose to protect against a memcpy from a null pointer, which can be problematic on some systems:</p>
<ul dir="auto">
<li><a href="https://github.com/kamailio/kamailio/issues/2913" data-hovercard-type="issue" data-hovercard-url="/kamailio/kamailio/issues/2913/hovercard">lost PV functions: runtime error: null pointer passed as argument 2, which is declared to never be nullĀ #2913</a></li>
</ul>
<p dir="auto">Is this happening only when assigning <code>$aa</code>, or happens for any assignment done to <code>$var(...)</code>?</p>
</blockquote>
<p dir="auto">Tested with pv $ai and $dd and result is the same:<br>
<strong>scscf kamailio.cfg code:</strong><br>
713 xlog("ai [$ai]\n");<br>
714 $var(var_ai) = $ai;<br>
715 xlog("var_ai [$var(var_ai)] len=$(var(var_ia){s.len})\n");<br>
716<br>
717 xlog("dd [$dd]\n");<br>
718 $var(var_dd) = $dd;<br>
719 xlog("var_dd [$var(var_dd)] len=$(var(var_dd){s.len})\n");</p>
<p dir="auto"><strong>Log output:</strong><br>
19572 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: *** cfgtrace:dbg_cfg_trace(): request_route=[REGISTER] c=[/etc/kamailio_scscf/kamailio.cfg] l=713 a=25 n=xlog 19573 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) DEBUG: pv [pv_core.c:1327]: pv_get_pai(): no P-Asserted-Identity header<br>
19574 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: <script>: <strong>ai []</strong> 19575 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: *** cfgtrace:dbg_cfg_trace(): request_route=[REGISTER] c=[/etc/kamailio_scscf/kamailio.cfg] l=714 a=63 n=assign<br>
19576 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) DEBUG: pv [pv_core.c:1327]: pv_get_pai(): no P-Asserted-Identity header 19577 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: *** cfgtrace:dbg_cfg_trace(): request_route=[REGISTER] c=[/etc/kamailio_scscf/kamailio.cfg] l=715 a=25 n=xlog 19578 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: <script>: <strong>var_ai [0] len=1</strong><br>
19579 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: *** cfgtrace:dbg_cfg_trace(): request_route=[REGISTER] c=[/etc/kamailio_scscf/kamailio.cfg] l=717 a=25 n=xlog<br>
19580 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) DEBUG: pv [pv_core.c:1443]: pv_get_dsturi_attr(): no destination URI<br>
19581 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: <script>: <strong>dd []</strong><br>
19582 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: *** cfgtrace:dbg_cfg_trace(): request_route=[REGISTER] c=[/etc/kamailio_scscf/kamailio.cfg] l=718 a=63 n=assign<br>
19583 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) DEBUG: pv [pv_core.c:1443]: pv_get_dsturi_attr(): no destination URI<br>
19584 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: *** cfgtrace:dbg_cfg_trace(): request_route=[REGISTER] c=[/etc/kamailio_scscf/kamailio.cfg] l=719 a=25 n=xlog<br>
19585 Nov 12 13:30:43 ims_dev-107 kamailio_scscf[4439]: 1(4472) ERROR: <script>: <strong>var_dd [0] len=1</strong></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/2928#issuecomment-967033409">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJPKUJ6TTCYTX2OODLULT3VDANCNFSM5H2USIAQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/ABO7UZLVOTCQ75HCHKZ63IDULT3VDA5CNFSM5H2USIA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHGR4EQI.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/2928#issuecomment-967033409",
"url": "https://github.com/kamailio/kamailio/issues/2928#issuecomment-967033409",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>