[Asterisk-code-review] term: truncate the message rather than the escapes. (asterisk[master])

Jaco Kroon asteriskteam at digium.com
Thu Nov 11 04:50:27 CST 2021


Attention is currently required from: Joshua Colp.
Jaco Kroon has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/16640 )

Change subject: term: truncate the message rather than the escapes.
......................................................................


Patch Set 3:

(1 comment)

Patchset:

PS3: 
> Sean asked about this on IRC: […]
Indeed.  So even with PRETTY_FUNCTION => FUNCTION there is no guarantee that function names will not result in a buffer overrun in the logger subsystem, no matter how ridiculously big one makes the buffer.

The other option is to convert this to use asprintf, but then I'll argue that this being in the logger system, memory allocations+free is probably not a good idea.



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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I80ef7a4bfd2947e090ef830143391d11baebdb0d
Gerrit-Change-Number: 16640
Gerrit-PatchSet: 3
Gerrit-Owner: Jaco Kroon <jaco at uls.co.za>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Sean Bright <sean at seanbright.com>
Gerrit-CC: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Thu, 11 Nov 2021 10:50:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joshua Colp <jcolp at sangoma.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211111/4d6b0384/attachment-0001.html>


More information about the asterisk-code-review mailing list