]> granicus.if.org Git - python/commitdiff
Fix issue #14315: The zipfile module now ignores extra fields in the central
authorGregory P. Smith <greg@krypto.org>
Fri, 30 May 2014 06:42:47 +0000 (23:42 -0700)
committerGregory P. Smith <greg@krypto.org>
Fri, 30 May 2014 06:42:47 +0000 (23:42 -0700)
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.

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

Simple merge
diff --cc Misc/NEWS
index f2bd7b77ab540e1f0fdfeae279acbaaeff3eecb5,f74a18c319a58594fbe433b27f2ed0552812980e..7afb3326d1a13ef0cdec7186ea5b2f4a10cf89f3
+++ b/Misc/NEWS
@@@ -89,74 -83,75 +89,79 @@@ Core and Builtin
  Library
  -------
  
 -- Issue #10744: Fix PEP 3118 format strings on ctypes objects with a nontrivial
 -  shape.
++- Issue #14315: The zipfile module now ignores extra fields in the central
++  directory that are too short to be parsed instead of letting a struct.unpack
++  error bubble up as this "bad data" appears in many real world zip files in
++  the wild and is ignored by other zip tools.
 -- Issue #20998: Fixed re.fullmatch() of repeated single character pattern
 -  with ignore case.  Original patch by Matthew Barnett.
 +- Issue #21402: tkinter.ttk now works when default root window is not set.
  
 -- Issue #21075: fileinput.FileInput now reads bytes from standard stream if
 -  binary mode is specified.  Patch by Sam Kimbrel.
 +- Issue #3015: _tkinter.create() now creates tkapp object with wantobject=1 by
 +  default.
  
 -- Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a
 -  flush() on the underlying binary stream.  Patch by akira.
 +- Issue #10203: sqlite3.Row now truly supports sequence protocol.  In particulr
 +  it supports reverse() and negative indices.  Original patch by Claudiu Popa.
  
 -- Issue #21470: Do a better job seeding the random number generator by
 -  using enough bytes to span the full state space of the Mersenne Twister.
 +- Issue #18807: If copying (no symlinks) specified for a venv, then the python
 +  interpreter aliases (python, python3) are now created by copying rather than
 +  symlinking.
  
 -- Issue #21398: Fix an unicode error in the pydoc pager when the documentation
 -  contains characters not encodable to the stdout encoding.
 +- Issue #20197: Added support for the WebP image type in the imghdr module.
 +  Patch by Fabrice Aneche and Claudiu Popa.
  
 -Tests
 ------
 +- Issue #21513: Speedup some properties of IP addresses (IPv4Address,
 +  IPv6Address) such as .is_private or .is_multicast.
  
 -- Issue #17756: Fix test_code test when run from the installed location.
 +- Issue #21137: Improve the repr for threading.Lock() and its variants
 +  by showing the "locked" or "unlocked" status.  Patch by Berker Peksag.
  
 -- Issue #17752: Fix distutils tests when run from the installed location.
 +- Issue #21538: The plistlib module now supports loading of binary plist files
 +  when reference or offset size is not a power of two.
  
 -IDLE
 -----
 +- Issue #21455: Add a default backlog to socket.listen().
  
 -- Issue #18104: Add idlelib/idle_test/htest.py with a few sample tests to begin
 -  consolidating and improving human-validated tests of Idle. Change other files
 -  as needed to work with htest.  Running the module as __main__ runs all tests.
 +- Issue #21525: Most Tkinter methods which accepted tuples now accept lists too.
  
 +- Issue #10744: Fix PEP 3118 format strings on ctypes objects with a nontrivial
 +  shape.
  
 -What's New in Python 3.4.1rc1?
 -==============================
 +- Issue #20826: Optimize ipaddress.collapse_addresses().
  
 -Release date: 2014-05-05
 +- Issue #21487: Optimize ipaddress.summarize_address_range() and
 +  ipaddress.{IPv4Network,IPv6Network}.subnets().
  
 -Core and Builtins
 ------------------
 +- Issue #21486: Optimize parsing of netmasks in ipaddress.IPv4Network and
 +  ipaddress.IPv6Network.
  
 -- Issue #21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.
 +- Issue #13916: Disallowed the surrogatepass error handler for non UTF-*
 +  encodings.
  
 -- Issue #21209: Fix sending tuples to custom generator objects with the yield
 -  from syntax.
 +- Issue #20998: Fixed re.fullmatch() of repeated single character pattern
 +  with ignore case.  Original patch by Matthew Barnett.
  
 -- Issue #21134: Fix segfault when str is called on an uninitialized
 -  UnicodeEncodeError, UnicodeDecodeError, or UnicodeTranslateError object.
 +- Issue #21075: fileinput.FileInput now reads bytes from standard stream if
 +  binary mode is specified.  Patch by Sam Kimbrel.
  
 -- Issue #19537: Fix PyUnicode_DATA() alignment under m68k.  Patch by
 -  Andreas Schwab.
 +- Issue #19775: Add a samefile() method to pathlib Path objects.  Initial
 +  patch by Vajrasky Kok.
  
 -- Issue #20929: Add a type cast to avoid shifting a negative number.
 +- Issue #21398: Fix an unicode error in the pydoc pager when the documentation
 +  contains characters not encodable to the stdout encoding.
  
 -- Issue #20731: Properly position in source code files even if they
 -  are opened in text mode. Patch by Serhiy Storchaka.
 +- Issue #16531: ipaddress.IPv4Network and ipaddress.IPv6Network now accept
 +  an (address, netmask) tuple argument, so as to easily construct network
 +  objects from existing addresses.
  
 -- Issue #20637: Key-sharing now also works for instance dictionaries of
 -  subclasses.  Patch by Peter Ingebretson.
 +- Issue #21156: importlib.abc.InspectLoader.source_to_code() is now a
 +  staticmethod.
  
 -- Issue #12546: Allow \x00 to be used as a fill character when using str, int,
 -  float, and complex __format__ methods.
 +- Issue #21424: Simplified and optimized heaqp.nlargest() and nmsmallest()
 +  to make fewer tuple comparisons.
  
 -- Issue #13598: Modify string.Formatter to support auto-numbering of
 -  replacement fields. It now matches the behavior of str.format() in
 -  this regard. Patches by Phil Elson and Ramchandra Apte.
 +- Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a
 +  flush() on the underlying binary stream.  Patch by akira.
  
 -Library
 --------
 +- Issue #18314: Unlink now removes junctions on Windows. Patch by Kim Gräsman
  
  - Issue #21088: Bugfix for curses.window.addch() regression in 3.4.0.
    In porting to Argument Clinic, the first two arguments were reversed.