hwhw/kindlepdfviewer — pull request #471 by chrox (2012-10-20 08:53:19+00:00)
Title: add page size limit in reading pdf/djvu files

Occasionally koptreader will crash the KPV when reading a particularly large page in PDF/DJVU file. In this patch the maximum page size is set to 3000 x 4000, that is allocating no more than 12MB memory in reading one page. In most cases, this page size should be enough. In the future the maximum page size could be user configurable.