[Asterisk-code-review] res_http_websocket: Add trailing zero for text strings (asterisk[master])
Nickolay V. Shmyrev
asteriskteam at digium.com
Fri Jul 3 03:31:41 CDT 2020
Nickolay V. Shmyrev has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/14626 )
Change subject: res_http_websocket: Add trailing zero for text strings
......................................................................
Patch Set 1:
> Patch Set 1: Code-Review-1
>
> (1 comment)
>
> Did you encounter an issue with the code? Did ast_copy_string() read past the end of a buffer here?
Yes, I catched this with valgrind. ast_copy_string reads one byte after payload buffer which causes invalid read warning.
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14626
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Ib4a75cffeb1eb8cf01136ef30306bd623e531a2a
Gerrit-Change-Number: 14626
Gerrit-PatchSet: 1
Gerrit-Owner: Nickolay V. Shmyrev <nshmyrev at alphacephei.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Fri, 03 Jul 2020 08:31:41 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200703/cb6790b3/attachment.html>
More information about the asterisk-code-review
mailing list