diff dvd_udf.c @ 9:df4a5625b81d src

memzero ICB before using it; patch by Erik Hovland org
author nicodvb
date Thu, 05 Jun 2008 10:25:04 +0000
parents bfb2ca68d906
children fce16251755c
line wrap: on
line diff
--- a/dvd_udf.c	Thu Jun 05 10:22:07 2008 +0000
+++ b/dvd_udf.c	Thu Jun 05 10:25:04 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))) {