]> granicus.if.org Git - python/commitdiff
Issue #4844: ZipFile now raises BadZipFile when opens a ZIP file with an
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 31 Jan 2013 13:29:20 +0000 (15:29 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Thu, 31 Jan 2013 13:29:20 +0000 (15:29 +0200)
incomplete "End of Central Directory" record.  Original patch by Guilherme
Polo and Alan McIntyre.

1  2 
Lib/test/test_zipfile.py
Lib/zipfile.py
Misc/NEWS

Simple merge
diff --cc Lib/zipfile.py
Simple merge
diff --cc Misc/NEWS
index 8a5510fd121d984bbba04bfe756c3192fdbbc0e0,34f4a6bdfe2fc2903e643b4f91af9d34b002fc6e..206ede00498832ff956df82e5e54334ac85710f6
+++ b/Misc/NEWS
@@@ -164,8 -216,12 +164,12 @@@ Core and Builtin
  Library
  -------
  
 -- Issue #15505: `unittest.installHandler` no longer assumes SIGINT handler is
 -  set to a callable object.
+ - Issue #4844: ZipFile now raises BadZipFile when opens a ZIP file with an
+   incomplete "End of Central Directory" record.  Original patch by Guilherme
+   Polo and Alan McIntyre.
 +- Issue #17071: Signature.bind() now works when one of the keyword arguments
 +  is named ``self``.
  
  - Issue #12004: Fix an internal error in PyZipFile when writing an invalid
    Python file.  Patch by Ben Morgan.