[Asterisk-code-review] app queue: Silence GCC 8 compiler warning (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Wed Aug 22 07:48:31 CDT 2018


Richard Mudgett has posted comments on this change. ( https://gerrit.asterisk.org/9980 )

Change subject: app_queue: Silence GCC 8 compiler warning
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.asterisk.org/#/c/9980/2/apps/app_queue.c
File apps/app_queue.c:

https://gerrit.asterisk.org/#/c/9980/2/apps/app_queue.c@9935
PS2, Line 9935: 		if (0 <= state && state < 100) {      /* 0-99 */
> > What was the silly compiler complaining about?  This change makes […]
Actually it is worse than that since sprintf() doesn't know the size of the buffer it is passed it will write beyond the buffer and corrupt memory.

Please update the commit message to point out what the compiler was complaining about so the change can make sense.



-- 
To view, visit https://gerrit.asterisk.org/9980
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: I18577590da46829c1ea7d8b82e41d69f105baa10
Gerrit-Change-Number: 9980
Gerrit-PatchSet: 2
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Sean Bright <sean.bright at gmail.com>
Gerrit-Comment-Date: Wed, 22 Aug 2018 12:48:31 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180822/0d8b49db/attachment.html>


More information about the asterisk-code-review mailing list