[Mplayer-cvslog] CVS: main/libmpdvdkit2 dvd_input.c,1.2,1.3

Dmitry Baryshkov CVS lumag at mplayerhq.hu
Sun Jan 11 19:56:50 CET 2004


Update of /cvsroot/mplayer/main/libmpdvdkit2
In directory mail:/scsi/2/tmp/cvs-serv28557

Modified Files:
	dvd_input.c 
Log Message:
Fix (possible) memory corruption. dvd_input_t is pointer to struct dvd_input_s and not a struct.


Index: dvd_input.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdvdkit2/dvd_input.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- dvd_input.c	16 Aug 2002 22:50:21 -0000	1.2
+++ dvd_input.c	11 Jan 2004 18:56:48 -0000	1.3
@@ -53,7 +53,7 @@
   dvd_input_t dev;
   
   /* Allocate the handle structure */
-  dev = (dvd_input_t) malloc(sizeof(dvd_input_t));
+  dev = (dvd_input_t) malloc(sizeof(struct dvd_input_s));
   if(dev == NULL) {
     fprintf(stderr, "libdvdread: Could not allocate memory.\n");
     return NULL;




More information about the MPlayer-cvslog mailing list