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, pitrou
Date 2010-09-12.14:03:33
SpamBayes Score 0.00022459378
Marked as misclassified No
Message-id <1284300215.66.0.0513376204994.issue9837@psf.upfronthosting.co.za>
In-reply-to
Content
If i follow the logic in read1() correctly it will do that only for files with very low compression ratios (the original sample where i noticed that problem was actually a chunk of encrypted data inside the zip).

From the comments referring to "with at most one read() system call" I would also assume it's OS-specific.

Anyway, I've attached a small file that reproduces this behavior on my system (win xp 32bit). When i run it i get "AssertionError: Read returned 4097 bytes (4096 requested)"
History
Date User Action Args
2010-09-12 14:03:35Black.Dewsetrecipients: + Black.Dew, pitrou
2010-09-12 14:03:35Black.Dewsetmessageid: <1284300215.66.0.0513376204994.issue9837@psf.upfronthosting.co.za>
2010-09-12 14:03:34Black.Dewlinkissue9837 messages
2010-09-12 14:03:34Black.Dewcreate