]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_voicemail: Fix stack overrun in append_mailbox
authorGeorge Joseph <gjoseph@digium.com>
Fri, 21 Sep 2018 19:32:52 +0000 (13:32 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 21 Sep 2018 21:07:39 +0000 (16:07 -0500)
commit22cf065ec939aae6a5aaee7afbfa8a5d20866c58
tree1aad1b73904f4c1935ffca3cd945422f3c396b81
parente3e24a0844ee4792deffcf470752e1be0de873d8
app_voicemail:  Fix stack overrun in append_mailbox

The append_mailbox function wasn't calculating the correct length
to pass to ast_alloca and it wasn't handling the case where context
might be empty.

Found by the Address Sanitizer.

Change-Id: I7eb51c7bd18a7a8dbdba261462a95cc69e84f161
apps/app_voicemail.c