From: Dragos Oancea Date: Tue, 30 May 2023 12:18:31 +0000 (+0300) Subject: [core] coverity CID 1468449 (Out-of-bounds access) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc7169f62c008f74b69d28c61c925e5a0cdf201e;p=thirdparty%2Ffreeswitch.git [core] coverity CID 1468449 (Out-of-bounds access) --- diff --git a/src/switch_msrp.c b/src/switch_msrp.c index 1f5db7ac20..8c304fefcb 100644 --- a/src/switch_msrp.c +++ b/src/switch_msrp.c @@ -1745,8 +1745,8 @@ SWITCH_STANDARD_APP(msrp_send_file_function) switch_memory_pool_t *pool = switch_core_session_get_pool(session); switch_file_t *fd; const char *filename = data; - switch_size_t len = 1024; - char buf[1024]; + switch_size_t len = 4096; + char buf[4096]; int sanity = 10; if (!(msrp_session = switch_core_media_get_msrp_session(session))) {