mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-12 12:37:05 +00:00
FSCORE-676 Buffer too small
This commit is contained in:
1 parent
b02c69bba9
commit
0cc28f37fb
6 files changed
+6
-6
No files matched your search
@@ -264,7 +264,7 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
|
||||
if (globals.encode == ENCODING_TEXTXML) {
|
||||
headers = curl_slist_append(headers, "Content-Type: text/xml");
|
||||
} else if (globals.encode) {
|
||||
switch_size_t need_bytes = strlen(xml_text) * 3;
|
||||
switch_size_t need_bytes = strlen(xml_text) * 3 + 1;
|
||||
|
||||
xml_text_escaped = malloc(need_bytes);
|
||||
switch_assert(xml_text_escaped);
|
||||
|
||||
Reference in new issue
Block a user