[Asterisk-code-review] json: Take advantage of new API's. (asterisk[16])

Corey Farrell asteriskteam at digium.com
Fri Sep 21 16:07:35 CDT 2018


Corey Farrell has posted comments on this change. ( https://gerrit.asterisk.org/10194 )

Change subject: json: Take advantage of new API's.
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.asterisk.org/#/c/10194/1/main/json.c
File main/json.c:

https://gerrit.asterisk.org/#/c/10194/1/main/json.c@619
PS1, Line 619: 	return ast_json_pack("{s: o, s: o, s: o}",
> Neither of the patches to jansson fix the bug I was pointing out. […]
Ah I see that now.  At some point I'll work on writing some failing tests for this in jansson and then I'll fix them.  Also you are correct about lack of s->has_error = 1 for the UTF-8 error, when I added the 'has_error' field I was mostly concerned with fixing memory leaks caused by not fully scanning all "o" formats.

Github ticket: https://github.com/akheron/jansson/issues/437



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

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: comment
Gerrit-Change-Id: I8382d28d7d83ee0ce13334e51ae45dbc0bdaef48
Gerrit-Change-Number: 10194
Gerrit-PatchSet: 2
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Comment-Date: Fri, 21 Sep 2018 21:07:35 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180921/b1635ff5/attachment.html>


More information about the asterisk-code-review mailing list