Artifacts Associated With Ticket 8af92dfb668b292a
Ticket change [ce39f2589d] (rid 181681) by aku on 2020-04-14 20:03:17:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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).
- foundin initialized to: "8.7a4, 8.6.10, 8.6.7, ..."
- is_private initialized to: "0"
- login: "aku"
- priority initialized to: "5 Medium"
- private_contact initialized to: "194c9ef8edbd9a57ef36f4f18fde1d57ce26e1e5"
- resolution initialized to: "None"
- severity initialized to: "Critical"
- status initialized to: "Open"
- submitter initialized to: "aku"
- subsystem initialized to: "57. zlib"
- title initialized to: "zlib transform issue, bad inflate"
- type initialized to: "Bug"
Add attachment "example.tcl" [8cbe182ccc] (rid 181683) by aku on 2020-04-14 20:04:48.
Add attachment "example.deflated" [8950698e73] (rid 181688) by aku on 2020-04-14 20:06:36.
Ticket change [3efb8c1f82] (rid 181689) by aku on 2020-04-14 20:06:51:
- assignee changed to: "dkf"
- login: "aku"
- mimetype: "text/plain"
Ticket change [16f84eccae] (rid 181734) by sebres on 2020-04-15 19:14:05:
- 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;
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [142ee6b033] (rid 181735) by sebres on 2020-04-15 19:14:23:
- login: "sebres"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
Ticket change [c19ecc4d12] (rid 181774) by aku on 2020-04-16 04:25:21:
- 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.
- login: "aku"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [b15232090a] (rid 181776) by aku on 2020-04-16 05:46:10:
- closedate changed to: "2458955.74040376"
- closer changed to: "aku"
- icomment:
Followup: Ticket [f70ce1feadf55c2f0fd142bdc20fbdcae5698495].
- login: "aku"
- mimetype: "text/plain"
- status changed to: "Closed"