changeset 374:9ab286814761 src

memzero ICB before using it; patch by Erik Hovland org
author nicodvb
date Thu, 05 Jun 2008 10:24:24 +0000
parents 78e68cde11cf
children 5820649e5aa2
files libdvdread/dvd_udf.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libdvdread/dvd_udf.c	Thu Jun 05 10:22:53 2008 +0000
+++ b/libdvdread/dvd_udf.c	Thu Jun 05 10:24:24 2008 +0000
@@ -784,6 +784,7 @@
     *filesize = 0;
     tokenline[0] = '\0';
     strncat(tokenline, filename, MAX_UDF_FILE_NAME_LEN - 1);
+    memset(&ICB, 0, sizeof(ICB));
 
     if(!(GetUDFCache(device, PartitionCache, 0, &partition) &&
         GetUDFCache(device, RootICBCache, 0, &RootICB))) {