Blame SOURCES/cdrkit-1.1.11-memset.patch

8c1a2e
diff -up wrk/genisoimage/jte.c.wrk wrk/genisoimage/jte.c
8c1a2e
--- wrk/genisoimage/jte.c.wrk	2013-02-22 13:24:47.722196877 +0100
8c1a2e
+++ wrk/genisoimage/jte.c	2013-02-25 12:41:45.136653487 +0100
8c1a2e
@@ -280,7 +280,7 @@ extern int list_file_in_jigdo(char *file
8c1a2e
     if (!jtemplate_out)
8c1a2e
         return 0;
8c1a2e
 
8c1a2e
-    memset(md5, 0, sizeof(md5));
8c1a2e
+    memset(md5, 0, 16);
8c1a2e
 
8c1a2e
     /* Cheaper to check file size first */
8c1a2e
     if (size < jte_min_size)
8c1a2e
diff -up wrk/genisoimage/md5.c.wrk wrk/genisoimage/md5.c
8c1a2e
--- wrk/genisoimage/md5.c.wrk	2013-02-22 13:15:18.210866321 +0100
8c1a2e
+++ wrk/genisoimage/md5.c	2013-02-22 13:15:29.979935133 +0100
8c1a2e
@@ -183,7 +183,7 @@ mk_MD5Final (unsigned char digest[16], s
8c1a2e
 	putu32(ctx->buf[1], digest + 4);
8c1a2e
 	putu32(ctx->buf[2], digest + 8);
8c1a2e
 	putu32(ctx->buf[3], digest + 12);
8c1a2e
-	memset(ctx, 0, sizeof(ctx));	/* In case it's sensitive */
8c1a2e
+	memset(ctx, 0, sizeof(*ctx));	/* In case it's sensitive */
8c1a2e
 }
8c1a2e
 
8c1a2e
 /* The four core functions - F1 is optimized somewhat */
8c1a2e
diff -up wrk/libedc/edcspeed.c.wrk wrk/libedc/edcspeed.c
8c1a2e
--- wrk/libedc/edcspeed.c.wrk	2013-02-22 10:45:33.353219110 +0100
8c1a2e
+++ wrk/libedc/edcspeed.c	2013-02-22 10:46:52.497686387 +0100
8c1a2e
@@ -35,7 +35,8 @@ static int encspeed()
8c1a2e
 	secs = 10;
8c1a2e
 	end = 75*1000000 * secs;
8c1a2e
 
8c1a2e
-	memset(sect, 0, sizeof(sect));
8c1a2e
+	//faulty and unneccessary, immediately rewritten again
8c1a2e
+	//memset(sect, 0, sizeof(sect));
8c1a2e
 	for (i=0; i < 2352; ) {
8c1a2e
 		sect[i++] = 'J';
8c1a2e
 		sect[i++] = 'S';