From: havoc Date: Sat, 4 Mar 2006 18:49:26 +0000 (+0000) Subject: commented out a line as suggested by Spike, to fix a crash when length is 0, this... X-Git-Tag: xonotic-v0.1.0preview~4244 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=919633c14ce3da61012042b62a517b015d7ca761;p=xonotic%2Fdarkplaces.git commented out a line as suggested by Spike, to fix a crash when length is 0, this matches the behavior of md4 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6072 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/mdfour.c b/mdfour.c index cd0ce05a..9859f94a 100644 --- 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;