changeset 89:42d169fbee1d src

Clear pf_temp to make sure it is initialized Patch by Erik Hovland <erik@hovland.org>
author rathann
date Sun, 17 Nov 2013 00:16:02 +0000
parents 3893da169ede
children 9f5802d2767a
files ifo_read.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ifo_read.c	Sun Nov 17 00:09:44 2013 +0000
+++ b/ifo_read.c	Sun Nov 17 00:16:02 2013 +0000
@@ -1385,6 +1385,7 @@
       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);