contao/test — Issue #2297: Hardening the ZipReader
Author: importer
Created: 2011-11-29 09:26:15+00:00
State: open
Labels: Feature, framework

Using Files, which are not ZIP files, the ZipReader class runs in endless loop.
Additionally, the speed is not really good, when the CENTRAL_DIR_END character array could not be found.

Attachet your will find a patch, which will check the ZIP file very quick, if it is a fake ZIP file, and throws an exception.

[Download the attachments](http://www.contao.org/tl_files/tickets/2297.zip "Download the attachments of this ticket")

--- _Originally created by lindesbs on July 14th, 2010, at 12:13pm (ID 2297)_