]> 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:09 +0000 (16:07 -0500)
commit47214d4de13a50d4615a7d2b4609264626e6e471
tree5222d5ea3f055a3f8f7707d33184b6551b8684d6
parent51656adf35dbe09b72a5550b63999803b49f3638
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