[Asterisk-code-review] app_osplookup.c: Avoid a format truncation. (asterisk[master])
Alexander Traud
asteriskteam at digium.com
Mon Apr 6 11:54:39 CDT 2020
Alexander Traud has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/14086 )
Change subject: app_osplookup.c: Avoid a format truncation.
......................................................................
Patch Set 1:
(1 comment)
https://gerrit.asterisk.org/c/asterisk/+/14086/1/apps/app_osplookup.c
File apps/app_osplookup.c:
https://gerrit.asterisk.org/c/asterisk/+/14086/1/apps/app_osplookup.c@997
PS1, Line 997: char buffer[OSP_SIZE_NORSTR - strlen("[]:")];
> Why not just ast_strdupa(src)?
Please, take that change over because I do not know what you mean. The snprintf below created the warning because it adds at least [] or even []:.
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14086
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ie54c8241ff0cc653910539c2db00ff2a4869750b
Gerrit-Change-Number: 14086
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Comment-Date: Mon, 06 Apr 2020 16:54:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200406/989b21e8/attachment.html>
More information about the asterisk-code-review
mailing list