]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] coverity CID 1468449 (Out-of-bounds access) endpoints
authorDragos Oancea <dragos@signalwire.com>
Tue, 30 May 2023 12:18:31 +0000 (15:18 +0300)
committerAndrey Volk <andywolk@gmail.com>
Thu, 1 Jun 2023 14:27:55 +0000 (17:27 +0300)
src/switch_msrp.c

index 1f5db7ac2012e3b6f4c43ea287c3a9d3771fe23b..8c304fefcb5d61869e7c187a84f649f917fc7c29 100644 (file)
@@ -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))) {