summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ctm
diff options
context:
space:
mode:
authormckay <mckay@FreeBSD.org>2003-04-07 08:09:53 +0000
committermckay <mckay@FreeBSD.org>2003-04-07 08:09:53 +0000
commit202eebfa32eee530d84c5f36e1caa796ee25bbfc (patch)
tree57aa54497d8fe974fb178651374381b407f5c0a0 /usr.sbin/ctm
parentb4fd6eb11139e81fd9ca5f9a76b0529670c02d89 (diff)
downloadFreeBSD-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')
-rw-r--r--usr.sbin/ctm/ctm/ctm.h1
-rw-r--r--usr.sbin/ctm/ctm/ctm_input.c4
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;
}
OpenPOWER on IntegriCloud