/[smecontribs]/rpms/mailman/contribs7/mailman-2.1.5-date_overflows.patch
ViewVC logotype

Annotation of /rpms/mailman/contribs7/mailman-2.1.5-date_overflows.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Apr 21 00:12:42 2008 UTC (16 years, 6 months ago) by slords
Branch: MAIN
CVS Tags: mailman-2_1_5_1-34_rhel4_6_el4_sme
Initial import of mailman-2.1.5.1-34.rhel4.6.el4.sme.src.rpm

1 slords 1.1 --- mailman-2.1.5.1/Mailman/Queue/ArchRunner.py.CVE-2005-3573 2003-12-01 02:50:40.000000000 +0100
2     +++ mailman-2.1.5.1/Mailman/Queue/ArchRunner.py 2006-03-02 14:50:40.000000000 +0100
3     @@ -49,7 +49,7 @@
4     elif abs(now - mktime_tz(tup)) > \
5     mm_cfg.ARCHIVER_ALLOWABLE_SANE_DATE_SKEW:
6     clobber = 1
7     - except ValueError:
8     + except (OverflowError, ValueError):
9     # The likely cause of this is that the year in the Date: field
10     # is horribly incorrect, e.g. (from SF bug # 571634):
11     # Date: Tue, 18 Jun 0102 05:12:09 +0500
12     --- mailman-2.1.5.1/Mailman/Handlers/Scrubber.py.CVE-2005-3573 2003-12-01 02:43:18.000000000 +0100
13     +++ mailman-2.1.5.1/Mailman/Handlers/Scrubber.py 2006-03-02 14:50:40.000000000 +0100
14     @@ -113,7 +113,7 @@
15     def safe_strftime(fmt, floatsecs):
16     try:
17     return time.strftime(fmt, floatsecs)
18     - except (TypeError, ValueError):
19     + except (OverflowError, TypeError, ValueError):
20     return None
21    
22    
23     @@ -142,7 +142,7 @@
24     }.get(parts[3], 0)
25     day = int(parts[4])
26     year = int(parts[6])
27     - except (IndexError, ValueError):
28     + except (OverflowError, IndexError, ValueError):
29     # Best we can do I think
30     month = day = year = 0
31     datedir = '%04d%02d%02d' % (year, month, day)
32     --- mailman-2.1.5.1/misc/Makefile.in.CVE-2005-3573 2004-05-14 05:34:34.000000000 +0200
33     +++ mailman-2.1.5.1/misc/Makefile.in 2006-03-02 14:53:59.000000000 +0100
34     @@ -89,7 +89,7 @@
35     install-packages:
36     for p in $(PACKAGES); \
37     do \
38     - gunzip -c $(srcdir)/$$p.tar.gz | (cd $(PKGDIR) ; tar xf -); \
39     + test -d $(PKGDIR)/$$p || gunzip -c $(srcdir)/$$p.tar.gz | (cd $(PKGDIR) ; tar xf -); \
40     (cd $(PKGDIR)/$$p ; umask 02 ; PYTHONPATH=$(PYTHONLIBDIR) $(PYTHON) $(SETUPCMD)); \
41     done
42    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed