From fc7169f62c008f74b69d28c61c925e5a0cdf201e Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Tue, 30 May 2023 15:18:31 +0300 Subject: [PATCH] [core] coverity CID 1468449 (Out-of-bounds access) --- src/switch_msrp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))) {