Forum: Bugs
Topic: Bug with MD5 creation
started by: Airw0lf

Posted by Airw0lf on May 22 2006,07:23
This is a bug I have observed in v8.0 build 1392.
If I create a new ISO file, the MD5 sums generated by UltraISO match the original files exactly.

But if I re-open the ISO file I have just created, and add an extra file and re-save, the MD5 sums of the ORIGINAL files are wrong. The MD5 sums of the NEW files added are correct.

If I mount the ISO file in Daemon Tools, then all the MD5 sums of the files are correct as expected.

There must be some bug in calculating MD5 sums of files that are already in a ISO file.

Posted by xoben on May 23 2006,10:25
QUOTE
But if I re-open the ISO file I have just created, and add an extra file and re-save, the MD5 sums of the ORIGINAL files are wrong. The MD5 sums of the NEW files added are correct.

Sorry, what do you mean for 're-save' ?

A step by step instruction to reproduce this problem will be appreciated.

Posted by Guest on May 23 2006,15:33
if you add new files to an iso image the md5 string of new image saved change because there are new bit added
Posted by Airw0lf on May 24 2006,06:08

(xoben @ May 24 2006,02:25)
QUOTE
QUOTE
But if I re-open the ISO file I have just created, and add an extra file and re-save, the MD5 sums of the ORIGINAL files are wrong. The MD5 sums of the NEW files added are correct.

Sorry, what do you mean for 're-save' ?

A step by step instruction to reproduce this problem will be appreciated.

1. Let us assume I have created an ISO, with some files contained in it. I have used the "Create file checksums on save" to create a list of MD5s for all the files in the ISO. The MD5s in this list are correct and will match the MD5s of the original files that I have added to the ISO.

All I have done in step 1 is to open UltraISO, drag some files into my image, then click File->Save. "Create file checksums" is enabled in the options.

2. Now, I open the ISO that I just created (in step 1) in UltraISO (File->Open.) Now I drag one more file into the image, and then I press File->Save.

Now UltraISO will create another list of checksums. This list will contain checksums for the original files added in step 1, as well as the new file added. This time, the MD5s contained in this list will be wrong for the *original* files that I first added in step 1. The MD5 for the new file that I added in step 2 will be correct.

Hope this helps. Note that I have NOT selected "recompile ISO when saving directly". Super Restore is also disabled.

You can quite easily see this problem if you compare the  .MD5 files created by UltraISO in Step 1 and Step 2. You will see that they do not match for the files that were first added in Step 1.

Posted by xoben on May 25 2006,02:46
Thank you Airw0lf for your detailed information.

Please check your PM for an answer.

Posted by xoben on Jul. 08 2006,22:28
This bug has been fixed since version 8.12.