[Asterisk-code-review] dns core: Protect against array index violation. (asterisk[15])
Corey Farrell
asteriskteam at digium.com
Tue Dec 19 13:12:08 CST 2017
Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/7667 )
Change subject: dns_core: Protect against array index violation.
......................................................................
Patch Set 1:
(1 comment)
https://gerrit.asterisk.org/#/c/7667/1/main/dns_core.c
File main/dns_core.c:
https://gerrit.asterisk.org/#/c/7667/1/main/dns_core.c@450
PS1, Line 450: static struct ast_dns_record *allocate_dns_record(int rr_type, struct ast_dns_query *query, const char *data, const size_t size)
> To be pedantic, negative values of rr_type will also access outside of the
This is a static function and the caller already tests for rr_type < 0. How about an ast_assert?
--
To view, visit https://gerrit.asterisk.org/7667
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie2f6e4991cea46baa12e837bd64cc22b44d322bb
Gerrit-Change-Number: 7667
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Tue, 19 Dec 2017 19:12:08 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171219/d4aeb7d0/attachment.html>
More information about the asterisk-code-review
mailing list