[New-bugs-announce] [issue1746] ZIP files with archive comments longer than 4k not recognized as valid by zipfile module

Alan McIntyre report at bugs.python.org
Sun Jan 6 23:40:17 CET 2008


New submission from Alan McIntyre:

The current behavior of zipfile._EndRecData is to look in the last 4k of
data in a file if it appears it might have an archive comment; this
results in flagging proper ZIP files with comments longer than ~4074
bytes as "not a ZIP file."

I plan on posting a patch for this later, but figured this should be
documented in case I don't get around to it.

----------
components: Library (Lib)
messages: 59411
nosy: alanmcintyre
severity: normal
status: open
title: ZIP files with archive comments longer than 4k not recognized as valid by zipfile module
type: behavior
versions: Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1746>
__________________________________


More information about the New-bugs-announce mailing list