Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#1609 closed defect (fixed)

Garbage is printed for tel: URI in the URI parameter in Authorization/Proxy-Authorization header — at Version 2

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-2.1
Component: pjsip Version: trunk
Keywords: Cc:
Backport to 1.x milestone: release-1.16 Backported: yes

Description (last modified by bennylp)

Garbage character will be printed if tel: URI is used in Authorization and Proxy-Authorization header. This is because the sip_auth_client.c relies on undocumented NULL termination in pjsip_uri_print(). Unfortunately the NULL termination was not added for tel: URI.

This ticket adds two fixes:

  • remove the reliance on NULL termination in sip_auth_client.c
  • add the NULL termination when printing tel: URI just in case other components use it

Thanks Bart Klin / Arkadiusz Wronski for the report.

Change History (2)

comment:1 Changed 11 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

In 4320:

Fixed #1609: Garbage character may be printed after the URI parameter in Authorization/Proxy?-Authorization header

comment:2 Changed 11 years ago by bennylp

  • Description modified (diff)
  • Summary changed from Garbage character may be printed after the URI parameter in Authorization/Proxy-Authorization header to Garbage is printed for tel: URI in the URI parameter in Authorization/Proxy-Authorization header
Note: See TracTickets for help on using tickets.