]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_registrar.c: Prevent possible buffer overflow with domain aliases
authorSean Bright <sean.bright@gmail.com>
Wed, 4 Dec 2019 21:12:39 +0000 (16:12 -0500)
committerSean Bright <sean.bright@gmail.com>
Wed, 4 Dec 2019 22:15:26 +0000 (16:15 -0600)
commit0183e2bc67e9feaed5a6798ed7631346ac8a95da
treee60363aa5ed88720788a1b38a5f57d86c1a334bf
parentc1ad1ea39147b77b786c10fee24af7912920551f
res_pjsip_registrar.c: Prevent possible buffer overflow with domain aliases

We're appropriately sizing the id_domain_alias buffer, but then copying the data
into the id_domain one. We were then using the uninitialized id_domain_alias
buffer we just allocated.

This is ASTERISK~28641 adjacent, but significant enough to warrant its own
patch.

Change-Id: I81c38724d18deab8c6573153e2b99dbb6e2f33d9
res/res_pjsip_registrar.c