Skip to content
Tcl Source Code History Of Ticket 8af92dfb668b292a
Login

History Of Ticket 8af92dfb668b292a

Artifacts Associated With Ticket 8af92dfb668b292a

  1. Ticket change [ce39f2589d] (rid 181681) by aku on 2020-04-14 20:03:17:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      I have an example file (591 bytes) where inflation using a channel transform generates a file which is 3096 bytes short of the actual file it was generated from by deflation. Using direct in-memory inflation OTOH is ok, i.e. reconstructs the input correctly (size, and sha256sum). I have not tried to use a stream object.
      
      Example file and test script will be attached.
      
      Output from the example run
      <pre>
        hephaistos:(529) ~/Play/CoreSources/B > tclsh example.tcl 
        ./example.direct:    458752
        ./example.transform: 455656
        Transform under by 3096, vs direct
      </pre>
      I have seen this issue with 8.6.7 first, then confirmed to be still present in 8.6.10, and 8.7a4 (commit [c92d723731] on core-8-branch).
      
    5. foundin initialized to: "8.7a4, 8.6.10, 8.6.7, ..."
    6. is_private initialized to: "0"
    7. login: "aku"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "194c9ef8edbd9a57ef36f4f18fde1d57ce26e1e5"
    10. resolution initialized to: "None"
    11. severity initialized to: "Critical"
    12. status initialized to: "Open"
    13. submitter initialized to: "aku"
    14. subsystem initialized to: "57. zlib"
    15. title initialized to: "zlib transform issue, bad inflate"
    16. type initialized to: "Bug"
  2. Add attachment "example.tcl" [8cbe182ccc] (rid 181683) by aku on 2020-04-14 20:04:48.

  3. Add attachment "example.deflated" [8950698e73] (rid 181688) by aku on 2020-04-14 20:06:36.

  4. Ticket change [3efb8c1f82] (rid 181689) by aku on 2020-04-14 20:06:51:

    1. assignee changed to: "dkf"
    2. login: "aku"
    3. mimetype: "text/plain"
  5. Ticket change [16f84eccae] (rid 181734) by sebres on 2020-04-15 19:14:05:

    1. icomment:
      Check-in [96e1e0251b] fixes this, but...
      
      The whole handling around ZlibTransformInput is very strange:
      
        - ZlibTransformInput reads an input buffer for inflate in single bytes (where it can do that in larger chunks), so the internal cycle (e.g. callback execution) repeated toooooo many times;
      
        - ResultGenerate/ResultCopy doing to many copy operations (ResultGenerate could decode to next (required) part of decompression buffer directly so ResultCopy could obtain the buffer without interim copy operations here and there.
      
        - etc;
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [142ee6b033] (rid 181735) by sebres on 2020-04-15 19:14:23:

    1. login: "sebres"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"
    4. status changed to: "Pending"
  7. Ticket change [c19ecc4d12] (rid 181774) by aku on 2020-04-16 04:25:21:

    1. icomment:
      I confirm that commit [96e1e0251b] fixes the ticket:
      
      <pre>
      hephaistos:(510) ~/Play/CoreSources/B/tcl > tclsh ../example.tcl 
      ../example.direct:    458752
      ../example.transform: 458752
      Match
      </pre>
      
      ... And `make test` passes.
      
    2. login: "aku"
    3. mimetype: "text/x-fossil-wiki"
  8. Ticket change [b15232090a] (rid 181776) by aku on 2020-04-16 05:46:10:

    1. closedate changed to: "2458955.74040376"
    2. closer changed to: "aku"
    3. icomment:
      Followup: Ticket [f70ce1feadf55c2f0fd142bdc20fbdcae5698495].
      
    4. login: "aku"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"