[issue11152] pb in zipfile module

2015-02-05 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Looks as this bug was fixed in issue1710703.

--
nosy: +serhiy.storchaka
resolution:  - out of date
stage: test needed - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11152
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11152] pb in zipfile module

2013-07-28 Thread Damien M Calloway

Damien M Calloway added the comment:

I believe I have isolated the bug - I added a blank string to the SMALL TEST 
DATA list, since empty strings will not compress. Test now fails on lines 645 
and 663 when extract and extract_all assertions fail. This appears to 
replicate the issue reported.

--
keywords: +patch
Added file: http://bugs.python.org/file31069/test11152.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11152] pb in zipfile module

2013-07-26 Thread Damien M Calloway

Changes by Damien M Calloway dama...@gmail.com:


--
nosy: +dmcalloway

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11152] pb in zipfile module

2011-02-08 Thread labem

New submission from labem la...@e-i.com:

Detected in Python version:
Python 2.6.3 (r263rc1:75186, Oct  2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)] 
on win32

Error in zipfile module: Zip files with no compressed files may contain only 
   [end of central directory record] bloc
without anything else. In that case, when _EndRecData(fpin) function tries to 
call:
 return _EndRecData64(fpin, -sizeEndCentDir, endrec)
it makes _EndRecData64() trying to seek data in the file before the beginning 
of the file and generates IOError Invalid Argument which is :
* either badly (in is_zipfile()), 
* or not catched (in __init()__._GetContents()._RealGetContents().EndRecData()).

Correction seems easy (not tested) and just need to replace:
# Try to read the Zip64 end of central directory structure
return _EndRecData64(fpin, -sizeEndCentDir, endrec)
by:
# check if other block are present
if filesize  sizeEndCentDir:
# Try to read the Zip64 end of central directory structure
return _EndRecData64(fpin, -sizeEndCentDir, endrec)
else:
# no other block present
return endrec

--
components: Library (Lib)
messages: 128180
nosy: Emmanuel LAB
priority: normal
severity: normal
status: open
title: pb in zipfile module
type: crash
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11152] pb in zipfile module

2011-02-08 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +alanmcintyre

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11152] pb in zipfile module

2011-02-08 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
stage:  - test needed
type: crash - behavior
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11152
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com