Skip to content
Tcl Source Code View Ticket
Login

View Ticket

ZIP filesystem time stamp conversion wrong etc.

Closed / Fixed44d382c51a848e6fbe7c9ee15e9386f1237660eeCreated 8 years agoUpdated 8 years ago
Descriptionplain2018-12-07 23:17:36
The DosTimeDate() function does not convert a DOS timestamp proper
due to a wrong bitmask for decoding the minute bitfield. Another problem
with the timestamp might be the wrong setup of the tm struct for mktime
in order to proper offset day light saving time.

Further problem: encrypted ZIP entries which are not compressed are decoded
on the fly (during reading). This is problematic when seek operations are
performed on the open file.

Proof of concept solutions can be found in the AndroWish check-in
https://www.androwish.org/index.html/info/ad46c3436775238e
Referenced by1
jan.nijtmans Ticket [44d382c51a]: 3 changes [History diff]2018-12-30 23:00:39
jan.nijtmanswiki2018-12-31 00:12:20

Should be fixed now. Thanks!

Please consider commits like [this] (and others) for androwish, otherwise it will become more and more difficult to keep Androwish and Tcl code aligned. It's already getting more difficult than necessary.

Thanks!

chwplain2018-12-31 07:11:50
I'm afraid, that I will have to keep the current state of the
zipfs.c module since the new tclZipfs.c does not fit the Android
environment due to its mounting a ZIP archive on a different
namespace (virtual zipfs:/ volume). For AndroWish this is a major
breaking change which most likely will cost weeks of work with
uncertain outcome.
Log in (anonymous is fine) to add a comment.