[Mplayer-cvslog] CVS: 0_90/vidix vidixlib.c,1.11,1.12

Diego Biurrun CVS syncmail at mplayerhq.hu
Thu Jul 1 12:22:30 CEST 2004


CVS change done by Diego Biurrun CVS

Update of /cvsroot/mplayer/0_90/vidix
In directory mail:/var2/tmp/cvs-serv26448/vidix

Modified Files:
	vidixlib.c 
Log Message:
string handling security fixes ported from main


Index: vidixlib.c
===================================================================
RCS file: /cvsroot/mplayer/0_90/vidix/vidixlib.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- vidixlib.c	20 May 2002 00:04:47 -0000	1.11
+++ vidixlib.c	1 Jul 2004 10:22:27 -0000	1.12
@@ -108,8 +108,8 @@
   unsigned (*_ver)(void);
   int      (*_probe)(int,int);
   int      (*_cap)(vidix_capability_t*);
-  strcpy(drv_name,path);
-  strcat(drv_name,name);
+  strlcpy(drv_name,path, sizeof( drv_name ));
+  strlcat(drv_name,name, sizeof( drv_name ));
   if(verbose) printf("vidixlib: PROBING: %s\n",drv_name);
   if(!(t_vdl(stream)->handle = dlopen(drv_name,RTLD_LAZY|RTLD_GLOBAL)))
   {
@@ -180,8 +180,8 @@
     unsigned (*ver)(void);
     int (*probe)(int,int);
     unsigned version = 0;
-    strcpy(drv_name,path);
-    strcat(drv_name,name);
+    strlcpy(drv_name,path, sizeof( drv_name ));
+    strlcat(drv_name,name, sizeof( drv_name ));
     if(!(t_vdl(stream)->handle = dlopen(drv_name,RTLD_NOW|RTLD_GLOBAL)))
     {
       if (verbose)




More information about the MPlayer-cvslog mailing list