[Mono-bugs] [Bug 73404][Maj] New - wrong md5 calculation result when using mono. corrent result using ms.net 1.1.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 6 Mar 2005 17:13:38 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by ch.trassl@web.de.
http://bugzilla.ximian.com/show_bug.cgi?id=73404
--- shadow/73404 2005-03-06 17:13:38.000000000 -0500
+++ shadow/73404.tmp.11138 2005-03-06 17:13:38.000000000 -0500
@@ -0,0 +1,55 @@
+Bug#: 73404
+Product: Mono: Runtime
+Version: unspecified
+OS: other
+OS Details: Linux: Fedora Core3, Windows: WinXP SP1
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: ch.trassl@web.de
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: wrong md5 calculation result when using mono. corrent result using ms.net 1.1.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+
+Description of Problem:
+The attached MonoBugMd5sum.cs calculates the string hash value of a file as
+unix md5sum does. The filename is the first command line argument.
+
+On unix platform using mono-1.0.6/mono-1.1.4, the program works as expected
+with small files. But with cd-sized files (700mb) the calculated hash is
+WRONG. (can be compared to md5sum output).
+
+On windows platform using mono-1.1.4 the program works as expected with
+small files. WRONG hash when calculating the md5 value of cd-sized files.
+Using Microsoft.Net 1.1 Runtime on windows the Md5sum is ALWAYS CORRECT.
+
+This was tested on _2_ different computers.
+
+Steps to reproduce the problem:
+1. compile the attached MonoBugMd5sum.cs: mcs MonoBugMd5sum.cs
+2. run the program against Microsoft.Net 1.1 Runtime: MonoBugMd5sum.exe
+<largecdimage>
+3. run the program against Mono-1.0.6/Mono-1.1.4 (Unix/Windows): mono
+MonoBugMd5sum.exe <largecdimage>
+4. compare the result to the result of common md5calculators, eg md5sum on
+unix platforms. result 2 == result 4. result 3 != result 4.
+
+Actual Results:
+result 2 == result 4. result 3 != result 4.
+
+Expected Results:
+result 2 == result 4 == result 3.
+
+How often does this happen?
+Everytime.
+
+Additional Information:
+Attached Sourcefile.