2004-06-29 Zoltan Varga <vargaz@freemail.hu>
authorZoltan Varga <vargaz@gmail.com>
Mon, 28 Jun 2004 11:32:30 +0000 (11:32 -0000)
committerZoltan Varga <vargaz@gmail.com>
Mon, 28 Jun 2004 11:32:30 +0000 (11:32 -0000)
* mono-sha1.c: Use gint32 for 32 types. Fixes random memory corruption
in SHA1Transform on 64 bit systems.

svn path=/trunk/mono/; revision=30474

mono/utils/ChangeLog
mono/utils/mono-sha1.c

index a7130ccec330d1d31762fa854dede5ac68a232a1..4ba899c1e3e59199d2ce5dff374b479fb64f0d9e 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-29  Zoltan Varga  <vargaz@freemail.hu>
+
+       * mono-sha1.c: Use gint32 for 32 types. Fixes random memory corruption
+       in SHA1Transform on 64 bit systems.
+
 2004-06-24  David Waite  <mass@akuma.org>
 
        * monobitset.c: change to C90-style comments from C99/C++-style 
index ea36586e3bf7882a16391e912f39a2f0933450bc..21ef6dbdd2853aa45cac6823cdadfb82ad430a2e 100644 (file)
@@ -72,11 +72,12 @@ A million repetitions of "a"
 
 #include <stdio.h>
 #include <string.h>
+#include <glib.h>
 #include "mono-digest.h"
 
 
-typedef          long int int32;
-typedef unsigned long int uint32;
+typedef gint32 int32;
+typedef guint32 uint32;
 
 /* #include <process.h> */     /* prototype for exit() - JHB */
 /* Using return() instead of exit() - SWR */