[DVDnav-discuss] r1287 - trunk/libdvdread/src/ifo_read.c

rathann subversion at mplayerhq.hu
Sun Nov 17 01:16:02 CET 2013


Author: rathann
Date: Sun Nov 17 01:16:02 2013
New Revision: 1287

Log:
Clear pf_temp to make sure it is initialized

Patch by Erik Hovland <erik at hovland.org>

Modified:
   trunk/libdvdread/src/ifo_read.c

Modified: trunk/libdvdread/src/ifo_read.c
==============================================================================
--- trunk/libdvdread/src/ifo_read.c	Sun Nov 17 01:09:44 2013	(r1286)
+++ trunk/libdvdread/src/ifo_read.c	Sun Nov 17 01:16:02 2013	(r1287)
@@ -1385,6 +1385,7 @@ int ifoRead_PTL_MAIT(ifo_handle_t *ifofi
       ifofile->ptl_mait = NULL;
       return 0;
     }
+    memset(pf_temp, 0, info_length);
     if(!(DVDReadBytes(ifofile->file, pf_temp, info_length))) {
       fprintf(stderr, "libdvdread: Unable to read PTL_MAIT table at index %d.\n",i);
       free(pf_temp);


More information about the DVDnav-discuss mailing list