]> 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:09 +0000 (16:15 -0600)
commit5c20cc4c3aa0684ff2a81513c85165718ca09d87
tree020e2e64124e9ed737376331edec5bfcb70abf9d
parentdd07ac6a3a4f3a8ef3c3fda20461ea841918e378
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