[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-07-07 Thread segfault42

New submission from segfault42 :

Hello, 

I have a problem with the librairy zipfile.py
http://svn.python.org/view/python/trunk/Lib/zipfile.py?revision=73565&view=markup


Zinfo structure limit the size of a file to an int max value with the
ZIP64_LIMIT value ( equal to "(1 << 31) - 1 " so to 2147483647 . 

The problem is happening when you write a big file in the line 1095 : 

self.fp.write(struct.pack("http://bugs.python.org/file14469/zipfile.py

___
Python tracker 
<http://bugs.python.org/issue6434>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-07-07 Thread segfault42

segfault42  added the comment:

look like issue 1182788

--
type:  -> crash

___
Python tracker 
<http://bugs.python.org/issue6434>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-07-08 Thread segfault42

segfault42  added the comment:

yes it's zinfo.file_size which is bigger than the long specify in the 
struct.pack

There's must have a solution with the extra header because a lot of tools 
can zip big file and these zip file can be open by zipfile.py

it's easy to reproduice with a big file of 3 gig.

i think that the problem come from that the write methode do not take 
care of the flag allowZip64

--

___
Python tracker 
<http://bugs.python.org/issue6434>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2009-09-01 Thread segfault42

segfault42  added the comment:

still no one to help on this problem ? is someone has some idea ?

--

___
Python tracker 
<http://bugs.python.org/issue6434>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com