diff options
Diffstat (limited to 'net-mail/cyrus-imap-admin/files/imap-overflow.diff')
-rw-r--r-- | net-mail/cyrus-imap-admin/files/imap-overflow.diff | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/net-mail/cyrus-imap-admin/files/imap-overflow.diff b/net-mail/cyrus-imap-admin/files/imap-overflow.diff deleted file mode 100644 index c6ee0cac3864..000000000000 --- a/net-mail/cyrus-imap-admin/files/imap-overflow.diff +++ /dev/null @@ -1,29 +0,0 @@ -diff -urN cyrus-imapd-2.1.10/imap/imapparse.c cyrus-imapd-2.1.10-modified/imap/imapparse.c ---- cyrus-imapd-2.1.10/imap/imapparse.c 2002-12-03 17:08:02.000000000 -0600 -+++ cyrus-imapd-2.1.10-modified/imap/imapparse.c 2002-12-03 17:45:52.000000000 -0600 -@@ -97,7 +97,7 @@ - struct buf *buf, int type) - { - int c; -- int i; -+ unsigned int i; - unsigned int len = 0; - int sawdigit = 0; - int isnowait; -@@ -228,6 +228,16 @@ - if (c != EOF) prot_ungetc(c, pin); - return EOF; - } -+ if (len > 65536) { -+ if (isnowait) { -+ for (i = 0; i < len; i++) -+ c = prot_getc(pin); -+ } -+ prot_printf(pout, "* BAD Literal too large\r\n"); -+ prot_flush(pout); -+ if (c != EOF) prot_ungetc(c, pin); -+ return EOF; -+ } - if (len >= buf->alloc) { - buf->alloc = len+1; - buf->s = xrealloc(buf->s, buf->alloc+1); |