Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 5fe552ece7a9d3f1f444655cc53c83b56bfe3528411bdc6afa85266b77c2da43
Ticket: aaa84fbbc59fc039788c080a8cd32d2f73316db9
zipfs info on mountpoint of executable returns zero offset in field 4
User & Date: juliannoble2 on 2024-11-30 16:09:54
Changes

  1. icomment:
    > Julian, what's your opinion on the importance of this fix. Is it something that needs strong consideration for 9.0.1 ?
    
    I think it's important for longer term compatibility regarding tools that are developed for building/rebuilding kits and being able to rely on consistent behaviour.
    
    The more tcl executables released with zipfs attached (kits etc); the more workarounds need to be done in future to detect how the combined executable preamble/zip archive was made and how to handle it.
    (may be as simple as just reading a zero offset result from 'zipfs info' and a tool deciding to error out)
    
    I can't claim it's critical that it makes it makes it into 9.0.1 - but ideally I would hope there is agreement that it would come very soon.
    
    Little used features such as the password that can optionally be used with zipfs mkimg should be naturally considered part of the 'internal preamble'. Also application specific zip headers such as certain non-standard zip signing mechanisms are part of the 'internal preamble'. (Also valid zips with deletions done via CDR only can result in a form of internalized preamble consisting of dead local file header entries)
    The current state of using 'zip -A' and existing mkimg behaviour to mix our tclsh/script in with a (possibly already existing) internal preamble means there is information loss regarding where the split lies that can only be determined in case-by-case application specific ways or in some cases complicated guesses.
    Even without password or existing zip preambles - the fix will mean tools will have a much easier time determining the bytes corresponding to the tclsh preamble.
    
    I don't believe it's quite as important for now regarding shared libs that may have a zipfs attached - but even then, being able to quickly determine the dll/so part via 'zipfs info' is a nice to have, and it would be best long term that this too can be relied upon.
    
  2. login: "juliannoble2"
  3. mimetype: "text/plain"