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

SourceForge.net noreply at sourceforge.net
Thu Mar 31 13:52:46 CEST 2011


Bugs item #3263660, was opened at 2011-03-31 13:52
Message generated for change (Tracker Item Submitted) made by wdoekes
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Walter Doekes (wdoekes)
Assigned to: Nobody/Anonymous (nobody)
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.

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

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