[Mplayer-cvslog] CVS: main/libmenu menu_console.c,1.7,1.8

Diego Biurrun CVS syncmail at mplayerhq.hu
Fri Jun 25 18:49:55 CEST 2004


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/main/libmenu
In directory mail:/var2/tmp/cvs-serv17907/libmenu

Modified Files:
	menu_console.c 
Log Message:
string handling security fixes
patch by Nicholas Kain, Alexander Strasser <eclipse7 at gmx.net>
reviewed by Pontscho, Alex, Rich


Index: menu_console.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmenu/menu_console.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- menu_console.c	13 Sep 2003 18:02:20 -0000	1.7
+++ menu_console.c	25 Jun 2004 16:49:53 -0000	1.8
@@ -150,8 +150,10 @@
     return;
   }
   priv->lines[ll] = realloc(priv->lines[ll],strlen(priv->lines[ll]) + strlen(l) + 1);
-  strcat(priv->lines[ll],l);
-  
+  if ( priv->lines[ll] != NULL )
+  {
+    strcat(priv->lines[ll],l);
+  }
 }
 
 static void draw(menu_t* menu, mp_image_t* mpi) {




More information about the MPlayer-cvslog mailing list