Remove the maximum patch size limit. It was intended as a check against

applying corrupt deltas, but has never (to my knowledge) caught any sort
of corruption, but instead has caused failures on correct deltas several
times.  I don't see any way to make the check useful, so it's gone.

Submitted by:	Stephen Montgomery-Smith <stephen@math.missouri.edu>
PR:		50461
MFC after:	7 days
This commit is contained in:
Stephen McKay 2003-04-07 08:09:53 +00:00
parent 50d32b06cc
commit 91d7dc23c1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113201
2 changed files with 0 additions and 5 deletions

View File

@ -26,7 +26,6 @@
#include <sys/time.h>
#define VERSION "2.0"
#define MAXSIZE (1024*1024*40)
#define SUBSUFF ".ctm"
#define TMPSUFF ".ctmtmp"

View File

@ -77,10 +77,6 @@ Fbytecnt(FILE *fd, MD5_CTX *ctx, u_char term)
u_chars *= 10;
u_chars += (*q - '0');
}
if(u_chars > MAXSIZE) {
Fatal("Bytecount too large.");
return -1;
}
return u_chars;
}