[OpenSIPS-Devel] [ opensips-Bugs-3263660 ] encode.hexa fails on high ascii

SourceForge.net noreply at sourceforge.net
Thu Apr 7 14:03:33 CEST 2011


Bugs item #3263660, was opened at 2011-03-31 14:52
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3263660&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.6.x
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Walter Doekes (wdoekes)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: encode.hexa fails on high ascii

Initial Comment:
$du = "sip:91.215.1.1";
xlog("L_WARN", "$du/$dd");
xlog("L_WARN", "$(dd{ip.pton})");
xlog("L_WARN", "$(dd{ip.pton}{s.encode.hexa})");

Expected results:

Mar 31 13:41:26 test opensips[7963]: sip:91.215.1.1/91.215.1.1
Mar 31 13:41:26 test opensips[7963]: [<D7>#001#001
Mar 31 13:41:26 test opensips[7963]: 5bd70101

Actual results:

Mar 31 13:38:06 test opensips[6102]: sip:91.215.1.1/91.215.1.1
Mar 31 13:38:06 test opensips[6102]: [<D7>#001#001
Mar 31 13:38:06 test opensips[6102]: 5b

(*) <D7> is actually \xD7 in the above output


Cause: signedness of char.

Fix: see patch.


Regards,
Walter Doekes
OSSO B.V.

----------------------------------------------------------------------

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2011-04-07 15:03

Message:
Hi Walter,

Thanks for the report and fix - the patch was uploaded on SVN both trunk
and 1.6

Regards,
Bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3263660&group_id=232389



More information about the Devel mailing list