r795 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Wed May 31 20:58:19 EDT 2006


Author: thilo
Date: 2006-05-31 20:58:19 -0400 (Wed, 31 May 2006)
New Revision: 795

Modified:
   trunk/code/qcommon/md4.c
Log:
Fixed a crash in md4 routines when using them on files with zero length, reported by Lukasz Saduniowski.


Modified: trunk/code/qcommon/md4.c
===================================================================
--- trunk/code/qcommon/md4.c	2006-06-01 00:23:46 UTC (rev 794)
+++ trunk/code/qcommon/md4.c	2006-06-01 00:58:19 UTC (rev 795)
@@ -159,10 +159,10 @@
 {
 	uint32_t M[16];
 
+	m = md;
+
 	if (n == 0) mdfour_tail(in, n);
 
-	m = md;
-
 	while (n >= 64) {
 		copy64(M, in);
 		mdfour64(M);




More information about the quake3-commits mailing list