]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
commented out a line as suggested by Spike, to fix a crash when length is 0, this...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Mar 2006 18:49:26 +0000 (18:49 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 4 Mar 2006 18:49:26 +0000 (18:49 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6072 d7cf8633-e32d-0410-b094-e92efae38249

mdfour.c

index cd0ce05a65c4ebdf16bf1a74396187af9b199a2a..9859f94ac01aae219c51fce2fefc48c6fec9f0fe 100644 (file)
--- a/mdfour.c
+++ b/mdfour.c
@@ -162,7 +162,10 @@ void mdfour_update(struct mdfour *md, unsigned char *in, int n)
 {
        uint32 M[16];
 
-       if (n == 0) mdfour_tail(in, n);
+// start of edit by Forest 'LordHavoc' Hale
+// commented out to prevent crashing when length is 0
+//     if (n == 0) mdfour_tail(in, n);
+// end of edit by Forest 'LordHavoc' Hale
 
        m = md;