[Asterisk-code-review] bridge_channel: Ensure text messages are zero terminated (asterisk[13])

Sean Bright asteriskteam at digium.com
Wed Aug 19 15:39:17 CDT 2020


Sean Bright has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/14736 )

Change subject: bridge_channel: Ensure text messages are zero terminated
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.asterisk.org/c/asterisk/+/14736/1/main/bridge_channel.c 
File main/bridge_channel.c:

https://gerrit.asterisk.org/c/asterisk/+/14736/1/main/bridge_channel.c@2367 
PS1, Line 2367: 		ast_debug(1, "Sending TEXT frame to '%s': %*.s\n",
              : 				ast_channel_name(bridge_channel->chan),
              : 				fr->datalen, (char *) fr->data.ptr);
> In case of OOM better to log ERROR like 'Could not sent TEXT frame to.... […]
Eh... because the memory allocation functions print an error on failure, we tend to not log those separately. And again, this is a debug message we are talking about - most people won't ever see it. I'm not compelled to change anything beyond what this patch already does.



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14736
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: Ic10057387ce30b2094613ea67e3ae8c5c431dda3
Gerrit-Change-Number: 14736
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-CC: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Comment-Date: Wed, 19 Aug 2020 20:39:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sean Bright <sean.bright at gmail.com>
Comment-In-Reply-To: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200819/b2827324/attachment.html>


More information about the asterisk-code-review mailing list