]> granicus.if.org Git - python/commit
Fix zipfile decryption. The check for validity only worked on one
authorGregory P. Smith <greg@mad-scientist.com>
Sun, 20 Jan 2008 01:21:03 +0000 (01:21 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sun, 20 Jan 2008 01:21:03 +0000 (01:21 +0000)
commit0c63fc23c4ca5b859a99e0d1864a41df6cc08d5f
treeeabd8e15d1ea200d40b53b085be214d3d62d01f3
parent88fbcf82ab49d91dab416a6e3bbfb6bb535c86c1
Fix zipfile decryption.  The check for validity only worked on one
type of encrypted zip files.  Files using extended local headers
needed to compare the check byte against different values.  (according
to reading the infozip unzip crypt.c source code)

Fixes issue1003.
Lib/test/test_zipfile.py
Lib/zipfile.py