]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7966: fix buffer overflow in mod_vmd found by msvc 2015
authorMike Jerris <mike@jerris.com>
Mon, 31 Aug 2015 21:56:01 +0000 (17:56 -0400)
committerMike Jerris <mike@jerris.com>
Mon, 31 Aug 2015 21:56:01 +0000 (17:56 -0400)
src/mod/applications/mod_vmd/mod_vmd.c

index baf4029196c028ea5eb1f627992eafe896c86fef..89dcc76ab9e6d82e40daab40128c6ba9d6217e1b 100644 (file)
@@ -150,7 +150,7 @@ typedef struct vmd_session_info {
        /*! State of the session. */
        vmd_state_t state;
        /*! Snapshot of DESA samples. */
-       vmd_point_t points[POINTS];
+       vmd_point_t points[POINTS+1];
        /*! Internal FreeSWITCH session. */
        switch_core_session_t *session;
        /*! Codec information for the session. */