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:
parent
a97f0c0a50
commit
3f7b0cf580
@ -26,7 +26,6 @@
|
||||
#include <sys/time.h>
|
||||
|
||||
#define VERSION "2.0"
|
||||
#define MAXSIZE (1024*1024*40)
|
||||
|
||||
#define SUBSUFF ".ctm"
|
||||
#define TMPSUFF ".ctmtmp"
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user