Fatal bug in gzip.py
A.M. Kuchling
amk1 at erols.com
Sun May 30 15:02:20 EDT 1999
Spam detection software, running on the system "albatross.python.org", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: Andreas Jung writes: > The following lines produce a fatal
fault in the gzip module: > import gzip > fp = gzip.GzipFile('common.add.hist___.1999104.gz','r')
> lines = fp.readlines() > fp.close() Sorted! This bug is dependent on the
details of the gzip'ped file. To explain: gzip-format files can be made up
of one or more components (called "members" in the gzip docs for some reason).
Most files, those you create by doing 'gzip filename' contain only a single
member. Multiple member files are created when you concatenate multiple gzip'ped
files, as in 'gzip -c <input >>logfile.gz". Andreas sent me the file in question,
and it's made up of many members -- 378, to be precise, with most being a
few hundred bytes long. The internal _read() method only returns the contents
of a single member at a time, assuming that following members will be read
by subsequent calls to _read(). [...]
Content analysis details: (8.0 points, 5.0 required)
pts rule name description
---- ---------------------- --------------------------------------------------
1.6 RCVD_IN_SORBS_DUL RBL: SORBS: sent directly from dynamic IP address
[207.172.87.5 listed in dnsbl.sorbs.net]
4.4 HELO_DYNAMIC_IPADDR2 Relay HELO'd using suspicious hostname (IP addr
2)
0.5 FH_HELO_EQ_D_D_D_D Helo is d-d-d-d
1.6 TVD_RCVD_IP TVD_RCVD_IP
2.0 FH_DATE_IS_19XX The date is not 19xx.
0.5 RCVD_IN_PBL RBL: Received via a relay in Spamhaus PBL
[207.172.87.5 listed in zen.spamhaus.org]
0.1 RDNS_DYNAMIC Delivered to trusted network by host with
dynamic-looking rDNS
-2.7 AWL AWL: From: address is in the auto white-list
-------------- next part --------------
An embedded message was scrubbed...
From: "A.M. Kuchling" <amk1 at erols.com>
Subject: Fatal bug in gzip.py
Date: Sun, 30 May 1999 15:02:20 -0400
Size: 3731
URL: <http://mail.python.org/pipermail/python-list/attachments/19990530/2bdd5409/attachment.mht>
More information about the Python-list
mailing list