X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=mdfour.c;h=9859f94ac01aae219c51fce2fefc48c6fec9f0fe;hb=0dc77d61cf349a3fbe2994cce57f07faa99aab27;hp=cd0ce05a65c4ebdf16bf1a74396187af9b199a2a;hpb=9e279d8ea4a631713d98132cd1b01338e81f5c0b;p=xonotic%2Fdarkplaces.git 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;