hwhw/kindlepdfviewer — pull request #250 by NuPogodi (2012-09-05 17:07:45+00:00)
Title: fix: to prevent crashes at opening wrong zips or zips with not crengine-related documents

1. crereader.lua: function CREReader:open(filename) now tests (i) whether the zip to be opened is really properly packed zip and (ii) whether the first zip entry is the crengine-related document. If some of these conditions is not satisfied, it returns false (as well as the error description) back to function openFile(filename) in reader.lua
2. reader.lua: function openFile(filename) shows warning with the error description returned by CREReader:open(filename).