[Asterisk-code-review] res_pjsip_stir_shaken: Fix JSON field ordering and disallowed TN char... (asterisk[master])

Sean Bright asteriskteam at digium.com
Wed Mar 8 11:01:19 CST 2023


Attention is currently required from: N A, Joshua Colp.

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

Change subject: res_pjsip_stir_shaken: Fix JSON field ordering and disallowed TN characters.
......................................................................


Patch Set 7:

(1 comment)

Patchset:

PS7: 
Working now. I'm guessing there is some UB in the ternary you had in there:

 return format == AST_JSON_SORTED ? JSON_SORT_KEYS | JSON_COMPACT : AST_JSON_PRETTY ? JSON_INDENT(2) : JSON_COMPACT;
 
I don't really know the operator precedence well enough to know how this is actually evaluated but the `AST_JSON_PRETTY` on the right by itself is a bit suspect.



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

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: Iab76d39447c4b8cf133de85657dba02fda07f9a2
Gerrit-Change-Number: 19897
Gerrit-PatchSet: 7
Gerrit-Owner: N A <asterisk at phreaknet.org>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Sean Bright <sean at seanbright.com>
Gerrit-CC: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: N A <asterisk at phreaknet.org>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Wed, 08 Mar 2023 17:01:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230308/fc5282af/attachment.html>


More information about the asterisk-code-review mailing list