]> 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:14:37 +0000 (16:14 -0600)
commit890f8a79d4c68c0423e9289cd8140c0581ae387d
tree6aa9e8f217640b8c97e3c626917ee2a128235f9b
parent5554082d883856a10f1c37c962e5de17a888c690
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