[core] coverity CID 1468449 (Out-of-bounds access)
This commit is contained in:
parent
0c89eeadc0
commit
1756ea25ca
|
@ -1745,8 +1745,8 @@ SWITCH_STANDARD_APP(msrp_send_file_function)
|
||||||
switch_memory_pool_t *pool = switch_core_session_get_pool(session);
|
switch_memory_pool_t *pool = switch_core_session_get_pool(session);
|
||||||
switch_file_t *fd;
|
switch_file_t *fd;
|
||||||
const char *filename = data;
|
const char *filename = data;
|
||||||
switch_size_t len = 1024;
|
switch_size_t len = 4096;
|
||||||
char buf[1024];
|
char buf[4096];
|
||||||
int sanity = 10;
|
int sanity = 10;
|
||||||
|
|
||||||
if (!(msrp_session = switch_core_media_get_msrp_session(session))) {
|
if (!(msrp_session = switch_core_media_get_msrp_session(session))) {
|
||||||
|
|
Loading…
Reference in New Issue