[Asterisk-code-review] app voicemail: Fix stack overrun in append mailbox (asterisk[13])
George Joseph
asteriskteam at digium.com
Fri Sep 21 15:28:36 CDT 2018
George Joseph has posted comments on this change. ( https://gerrit.asterisk.org/10235 )
Change subject: app_voicemail: Fix stack overrun in append_mailbox
......................................................................
Patch Set 1:
(1 comment)
https://gerrit.asterisk.org/#/c/10235/1/apps/app_voicemail.c
File apps/app_voicemail.c:
https://gerrit.asterisk.org/#/c/10235/1/apps/app_voicemail.c@12328
PS1, Line 12328: len = sizeof(box) + sizeof(context) + sizeof('@') + 1;
> You cannot use sizeof() since these are pointers to strings not
> arrays. This is why the previous code used strlen().
Oops, that was a copy/paste error.
--
To view, visit https://gerrit.asterisk.org/10235
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: I7eb51c7bd18a7a8dbdba261462a95cc69e84f161
Gerrit-Change-Number: 10235
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-Comment-Date: Fri, 21 Sep 2018 20:28:36 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180921/215360a8/attachment.html>
More information about the asterisk-code-review
mailing list