New submission from Serhiy Storchaka:

Bzip2 is block-based compression with large (up to 800 Kb) size of block. It 
means that while decompressor not read enough data it can't produce any output 
(actually this issue exists for other compression algorithms too, but less 
frequent). And the read1() method which makes only one low-level read can 
return empty bytes when there is still data available. This issue was fixed for 
gzip, bz2, and lzma modules in issue15546, but left in the zipfile module. In 
zipfile this bug less catastrophic because other read functions do not use 
read1() directly, but use lower level internal function.

----------
assignee: serhiy.storchaka
components: Library (Lib)
messages: 198085
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: read1() from zipfile returns empty data
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19053>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to