[Mplayer-cvslog] CVS: main/vidix vidixlib.c,1.12,1.13
Diego Biurrun CVS
syncmail at mplayerhq.hu
Fri Jun 25 18:49:54 CEST 2004
CVS change done by Diego Biurrun CVS
Update of /cvsroot/mplayer/main/vidix
In directory mail:/var2/tmp/cvs-serv17907/vidix
Modified Files:
vidixlib.c
Log Message:
string handling security fixes
patch by Nicholas Kain, Alexander Strasser <eclipse7 at gmx.net>
reviewed by Pontscho, Alex, Rich
Index: vidixlib.c
===================================================================
RCS file: /cvsroot/mplayer/main/vidix/vidixlib.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- vidixlib.c 2 Oct 2003 15:33:12 -0000 1.12
+++ vidixlib.c 25 Jun 2004 16:49:52 -0000 1.13
@@ -122,8 +122,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)))
{
@@ -194,8 +194,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