cdrkit-1.1.11-memset.patch 1.4 KB

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