]> git.pld-linux.org Git - packages/cyrus-imapd.git/commitdiff
- obsolete (already fixed in cyrus-imapd 2.0.17)
authorJakub Bogusz <qboosh@pld-linux.org>
Fri, 10 Jan 2003 15:14:56 +0000 (15:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cyrus-imapd-imap-intoverflow.patch -> 1.2
    cyrus-imapd-sieve-overflows.patch -> 1.2

cyrus-imapd-imap-intoverflow.patch [deleted file]
cyrus-imapd-sieve-overflows.patch [deleted file]

diff --git a/cyrus-imapd-imap-intoverflow.patch b/cyrus-imapd-imap-intoverflow.patch
deleted file mode 100644 (file)
index 647db05..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
---- cyrus-imapd-2.0.16/imap/imapparse.c.orig   Mon Jul 16 21:31:14 2001
-+++ cyrus-imapd-2.0.16/imap/imapparse.c        Thu Dec  5 11:53:09 2002
-@@ -52,7 +52,7 @@
-              struct buf *buf, int type)
- {
-     int c;
--    int i, len = 0;
-+    unsigned int i, len = 0;
-     int sawdigit = 0;
-     int isnowait;
-@@ -168,6 +168,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);
diff --git a/cyrus-imapd-sieve-overflows.patch b/cyrus-imapd-sieve-overflows.patch
deleted file mode 100644 (file)
index b1bd275..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
---- cyrus-imapd-2.0.16/sieve/addr.y.orig       Sat Jul 15 06:32:32 2000
-+++ cyrus-imapd-2.0.16/sieve/addr.y    Thu Dec  5 11:35:29 2002
-@@ -87,8 +87,9 @@
- /* copy address error message into buffer provided by sieve parser */
- int yyerror(char *s)
- {
--extern char addrerr[];
-+extern char addrerr[500];
--    strcpy(addrerr, s);
-+    strncpy(addrerr, s, sizeof(addrerr)-1);
-+    addrerr[sizeof(addrerr)-1] = '\0';
-     return 0;
- }
---- cyrus-imapd-2.0.16/sieve/sieve.y.orig      Mon Dec 18 05:53:43 2000
-+++ cyrus-imapd-2.0.16/sieve/sieve.y   Thu Dec  5 11:36:52 2002
-@@ -599,7 +599,7 @@
-     addrptr = s;
-     if (addrparse()) {
--      sprintf(errbuf, "address '%s': %s", s, addrerr);
-+      snprintf(errbuf, sizeof(errbuf), "address '%s': %s", s, addrerr);
-       yyerror(errbuf);
-       return 0;
-     }
-@@ -633,14 +633,14 @@
-       if (strcmp(f, "\\seen") && strcmp(f, "\\answered") &&
-           strcmp(f, "\\flagged") && strcmp(f, "\\draft") &&
-           strcmp(f, "\\deleted")) {
--          sprintf(errbuf, "flag '%s': not a system flag", f);
-+          snprintf(errbuf, sizeof(errbuf), "flag '%s': not a system flag", f);
-           yyerror(errbuf);
-           return 0;
-       }
-       return 1;
-     }
-     if (!imparse_isatom(f)) {
--      sprintf(errbuf, "flag '%s': not a valid keyword", f);
-+      snprintf(errbuf, sizeof(errbuf), "flag '%s': not a valid keyword", f);
-       yyerror(errbuf);
-       return 0;
-     }
This page took 0.075379 seconds and 4 git commands to generate.