This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Black.Dew
Recipients Black.Dew
Date 2010-09-12.09:28:12
SpamBayes Score 1.5341453e-07
Marked as misclassified No
Message-id <1284283695.55.0.592905912112.issue9837@psf.upfronthosting.co.za>
In-reply-to
Content
ZipFileExt.read() can return more data than requested, unlike file and other file-like objects.

This function calls read1() in a loop, passing the original requested size even if part of the data was already read thus reading and returning more than the caller requested.

This should be fixed by requesting n-len(buf) or something similar, or at least properly documented.
History
Date User Action Args
2010-09-12 09:28:15Black.Dewsetrecipients: + Black.Dew
2010-09-12 09:28:15Black.Dewsetmessageid: <1284283695.55.0.592905912112.issue9837@psf.upfronthosting.co.za>
2010-09-12 09:28:13Black.Dewlinkissue9837 messages
2010-09-12 09:28:12Black.Dewcreate