[Mplayer-cvslog] CVS: main/libmpdvdkit libdvdcss.c,1.3,1.4

Atmosfear atmos4 at mplayerhq.hu
Thu Apr 25 20:35:07 CEST 2002


Update of /cvsroot/mplayer/main/libmpdvdkit
In directory mail:/var/tmp.root/cvs-serv10511/libmpdvdkit

Modified Files:
	libdvdcss.c 
Log Message:
Fix memory corruption by wrong sized malloc (didn't reserve termination char).


Index: libdvdcss.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit/libdvdcss.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- libdvdcss.c	25 Apr 2002 17:08:04 -0000	1.3
+++ libdvdcss.c	25 Apr 2002 18:35:04 -0000	1.4
@@ -187,7 +187,7 @@
      {
       int fd;
       
-      if ( (key_file=calloc( 1,strlen( dvd_key_dir ) + 11 )) == NULL ) return -1;
+      if ( (key_file=calloc( 1,strlen( dvd_key_dir ) + 12 )) == NULL ) return -1;
       sprintf( key_file,"%s/%0.10x",dvd_key_dir,i_block );
 
       fprintf( stderr,"dvdcss: opening %s to look for key\n",key_file );




More information about the MPlayer-cvslog mailing list