diff options
Diffstat (limited to 'debian/patches/8.12/8.12.3/CAN-2003-0681.patch')
-rw-r--r-- | debian/patches/8.12/8.12.3/CAN-2003-0681.patch | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/debian/patches/8.12/8.12.3/CAN-2003-0681.patch b/debian/patches/8.12/8.12.3/CAN-2003-0681.patch deleted file mode 100644 index de31a60..0000000 --- a/debian/patches/8.12/8.12.3/CAN-2003-0681.patch +++ /dev/null @@ -1,87 +0,0 @@ -Index: parseaddr.c -=================================================================== -RCS file: /cvs/sendmail/parseaddr.c,v -retrieving revision 8.359.2.6 -diff -u -r8.359.2.6 parseaddr.c ---- parseaddr.c 27 Mar 2003 02:39:53 -0000 8.359.2.6 -+++ sendmail-8.12.3/sendmail/parseaddr.c 30 Mar 2003 16:41:50 -0000 -@@ -1000,6 +1008,8 @@ - } - if (pvp == NULL) - return EX_USAGE; -+ if (maxatom <= 0) -+ return EX_USAGE; - - /* - ** Run through the list of rewrite rules, applying -@@ -1866,6 +1880,7 @@ - register ENVELOPE *e; - { - bool tempfail = false; -+ int maxatom; - struct mailer **mp; - register struct mailer *m; - register char *p; -@@ -1880,6 +1895,7 @@ - printav(tv); - } - -+ maxatom = MAXATOM; - if (a == NULL) - a = (ADDRESS *) sm_rpool_malloc_x(e->e_rpool, sizeof *a); - memset((char *) a, '\0', sizeof *a); -@@ -1919,14 +1935,22 @@ - return a; - } - mname = *++tv; -+ --maxatom; - - /* extract host and user portions */ - if (*++tv != NULL && (**tv & 0377) == CANONHOST) -+ { - hostp = ++tv; -+ --maxatom; -+ } - else - hostp = NULL; -+ --maxatom; - while (*tv != NULL && (**tv & 0377) != CANONUSER) -+ { - tv++; -+ --maxatom; -+ } - if (*tv == NULL) - { - syserr("554 5.3.5 buildaddr: no user"); -@@ -1937,6 +1961,7 @@ - else if (hostp != NULL) - cataddr(hostp, tv - 1, hbuf, sizeof hbuf, '\0'); - cataddr(++tv, NULL, ubuf, sizeof ubuf, ' '); -+ --maxatom; - - /* save away the host name */ - if (sm_strcasecmp(mname, "error") == 0) -@@ -2041,6 +2066,7 @@ - { - p++; - tv++; -+ --maxatom; - a->q_flags |= QNOTREMOTE; - } - -@@ -2071,11 +2097,11 @@ - !bitset(RF_SENDERADDR|RF_HEADERADDR, flags)) - { - /* sender addresses done later */ -- (void) REWRITE(tv, 2, e); -+ (void) rewrite(tv, 2, 0, e, maxatom); - if (m->m_re_rwset > 0) -- (void) REWRITE(tv, m->m_re_rwset, e); -+ (void) rewrite(tv, m->m_re_rwset, 0, e, maxatom); - } -- (void) REWRITE(tv, 4, e); -+ (void) rewrite(tv, 4, 0, e, maxatom); - - /* save the result for the command line/RCPT argument */ - cataddr(tv, NULL, ubuf, sizeof ubuf, '\0'); - |