]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjproject_bundled: Disable PJSIP_UNESCAPE_IN_PLACE 24/2724/1
authorGeorge Joseph <gjoseph@digium.com>
Thu, 28 Apr 2016 21:54:07 +0000 (15:54 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 28 Apr 2016 21:54:07 +0000 (15:54 -0600)
commit719ece5659e166df7006d2fd3afdb83235022052
tree652401d178cf0d4b0576ba5f53ac4ccc47c02968
parent86fb803257586f670799de19b1585bb65be991d8
pjproject_bundled:  Disable PJSIP_UNESCAPE_IN_PLACE

When pjsip_parse_uri is called with PJSIP_UNESCAPE_IN_PLACE enabled,
the input uri string will become corrupted if it contains escape sequences.
It's not possible to automatically strdup or strdupa the input string because
the output uri pj_str_t's will have pointers to chunks of the input string.
Getting around this would require more memory management code and wouldn't
be worth the savings of doing the unescape in place.

ASTERISK-25970 #close
Reported-by: Dmitriy Serov
Change-Id: I28dc0e599b5108f7959b9c46dc8278371b372f88
third-party/pjproject/patches/config_site.h