From: Zoltan Varga Date: Mon, 28 Jun 2004 11:32:30 +0000 (-0000) Subject: 2004-06-29 Zoltan Varga X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=1d2f1b057d3f3dcd660ae4f67109976fb1a9b14c;p=mono.git 2004-06-29 Zoltan Varga * mono-sha1.c: Use gint32 for 32 types. Fixes random memory corruption in SHA1Transform on 64 bit systems. svn path=/trunk/mono/; revision=30474 --- diff --git a/mono/utils/ChangeLog b/mono/utils/ChangeLog index a7130ccec33..4ba899c1e3e 100644 --- a/mono/utils/ChangeLog +++ b/mono/utils/ChangeLog @@ -1,3 +1,8 @@ +2004-06-29 Zoltan Varga + + * mono-sha1.c: Use gint32 for 32 types. Fixes random memory corruption + in SHA1Transform on 64 bit systems. + 2004-06-24 David Waite * monobitset.c: change to C90-style comments from C99/C++-style diff --git a/mono/utils/mono-sha1.c b/mono/utils/mono-sha1.c index ea36586e3bf..21ef6dbdd28 100644 --- a/mono/utils/mono-sha1.c +++ b/mono/utils/mono-sha1.c @@ -72,11 +72,12 @@ A million repetitions of "a" #include #include +#include #include "mono-digest.h" -typedef long int int32; -typedef unsigned long int uint32; +typedef gint32 int32; +typedef guint32 uint32; /* #include */ /* prototype for exit() - JHB */ /* Using return() instead of exit() - SWR */