diff options
author | mckay <mckay@FreeBSD.org> | 2003-04-07 08:09:53 +0000 |
---|---|---|
committer | mckay <mckay@FreeBSD.org> | 2003-04-07 08:09:53 +0000 |
commit | 202eebfa32eee530d84c5f36e1caa796ee25bbfc (patch) | |
tree | 57aa54497d8fe974fb178651374381b407f5c0a0 /usr.sbin/ctm/ctm | |
parent | b4fd6eb11139e81fd9ca5f9a76b0529670c02d89 (diff) | |
download | FreeBSD-src-202eebfa32eee530d84c5f36e1caa796ee25bbfc.zip FreeBSD-src-202eebfa32eee530d84c5f36e1caa796ee25bbfc.tar.gz |
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
Diffstat (limited to 'usr.sbin/ctm/ctm')
-rw-r--r-- | usr.sbin/ctm/ctm/ctm.h | 1 | ||||
-rw-r--r-- | usr.sbin/ctm/ctm/ctm_input.c | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/usr.sbin/ctm/ctm/ctm.h b/usr.sbin/ctm/ctm/ctm.h index abee2d4..b733539 100644 --- a/usr.sbin/ctm/ctm/ctm.h +++ b/usr.sbin/ctm/ctm/ctm.h @@ -26,7 +26,6 @@ #include <sys/time.h> #define VERSION "2.0" -#define MAXSIZE (1024*1024*40) #define SUBSUFF ".ctm" #define TMPSUFF ".ctmtmp" diff --git a/usr.sbin/ctm/ctm/ctm_input.c b/usr.sbin/ctm/ctm/ctm_input.c index 0a3eecb..32166d3 100644 --- a/usr.sbin/ctm/ctm/ctm_input.c +++ b/usr.sbin/ctm/ctm/ctm_input.c @@ -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; } |