mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 14:28:34 +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
@@ -3045,7 +3045,7 @@ SWITCH_STANDARD_API(xml_wrap_api_function)
|
||||
|
||||
if (mystream.data) {
|
||||
if (encoded) {
|
||||
elen = (int) strlen(mystream.data) * 3;
|
||||
elen = (int) strlen(mystream.data) * 3 + 1;
|
||||
edata = malloc(elen);
|
||||
switch_assert(edata != NULL);
|
||||
memset(edata, 0, elen);
|
||||
|
||||
@@ -3733,7 +3733,7 @@ static switch_status_t conf_api_sub_list(conference_obj_t *conference, switch_st
|
||||
|
||||
static switch_xml_t add_x_tag(switch_xml_t x_member, const char *name, const char *value, int off)
|
||||
{
|
||||
switch_size_t dlen = strlen(value) * 3;
|
||||
switch_size_t dlen = strlen(value) * 3 + 1;
|
||||
char *data;
|
||||
switch_xml_t x_tag;
|
||||
|
||||
|
||||
@@ -3678,7 +3678,7 @@ static int web_callback(void *pArg, int argc, char **argv, char **columnNames)
|
||||
const char *fmt = "%a, %e %b %Y %T %z";
|
||||
char heard[80];
|
||||
char title_b4[128] = "";
|
||||
char title_aft[128 * 3] = "";
|
||||
char title_aft[128 * 3 + 1] = "";
|
||||
|
||||
if (argc > 0) {
|
||||
l_created = switch_time_make(atol(argv[0]), 0);
|
||||
|
||||
Reference in new issue
Block a user