[vlc-commits] commit: Fix heap corruption ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Jul 19 19:02:34 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 19 19:59:15 2010 +0300| [c1322a08ff69e58a5d64a5bbc790fd2268d6e598] | committer: Rémi Denis-Courmont 

Fix heap corruption

(cherry picked from commit 47369283f9bed68db77e0f1ba1f11840ddf1bfb3)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=c1322a08ff69e58a5d64a5bbc790fd2268d6e598
---

 src/input/input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 11c137d..8dba6a6 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1171,7 +1171,7 @@ static void InitPrograms( input_thread_t * p_input )
                  prgm = strtok_r( NULL, ",", &buf ) )
             {
                 vlc_value_t val = { .i_int = atoi( prgm ) };
-                TAB_APPEND( list.i_count, list.p_values, val );
+                INSERT_ELEM( list.p_values, list.i_count, list.i_count, val );
             }
 
             if( list.i_count > 0 )



More information about the vlc-commits mailing list