Skip to content
Tcl Source Code History Of Ticket 25842c161f
Login

History Of Ticket 25842c161f

Artifacts Associated With Ticket 25842c161f

  1. Ticket change [a3f1510abd] (rid 144851) by pointsman on 2016-02-03 14:56:29:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      This two line script
      
      set zlib [zlib stream deflate]
      $zlib put ""
      
      raises error "buffer error".
      
      At least, the documentation should say, that the cmd raises this error, if feeded with zero length input, if this is in fact the desired behaviour.
      
      I'd say, that should do nothing, gracefully.
      
    5. foundin initialized to: "trunk"
    6. is_private initialized to: "0"
    7. login: "pointsman"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "pointsman"
    14. subsystem initialized to: "57. zlib"
    15. title initialized to:
      zlib deflate streaming raises error in case of zero length input
      
    16. type initialized to: "Bug"
  2. Ticket change [f099ba6d19] (rid 144852) by pointsman on 2016-02-03 15:03:37:

    1. icomment:
      Futher note:
      
      set zlib [zlib stream deflate]
      $zlib get
      
      does nothing, gracefully.
      
    2. login: "pointsman"
    3. mimetype: "text/plain"
  3. Ticket change [dcc28099a7] (rid 144858) by dkf on 2016-02-03 15:30:59:

    1. assignee changed to: "dkf"
    2. closedate changed to: "2457422.14652191"
    3. closer changed to: "dkf"
    4. icomment:
      Code was excessively smartass. Made simpler and added a specific step to stop this foolishness.
      
    5. login: "dkf"
    6. mimetype: "text/html"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"
    9. username: "dkf"
  4. Ticket change [b7ac02ec35] (rid 148582) by aspect on 2016-09-03 08:44:05:

    1. closedate changed to: "2457634.86395725"
    2. closer changed to: "aspect"
    3. icomment:
      This patch has broken finalizing streams with [$zlib put -finalize ""] or [zlib finalize]:
      
      package require zlib
      
      set t1 [
          set c [zlib stream gzip]
          $c put abcdeEDCBA..
          $c finalize
          $c get
      ]
      set t2 [
          set c [zlib stream gzip]
          $c put -finalize abcdeEDCBA..
          $c get
      ]
      puts [expr {$t1 eq $t2}]
      # => 0
      
      Here $t2 is the correct stream, but $t1 is truncated.
      
    4. login: "aspect"
    5. mimetype: "text/plain"
  5. Ticket change [66595a94c1] (rid 149839) by apnadkarni on 2016-11-21 16:36:34:

    1. closer changed to: "nobody"
    2. icomment:
      Marked as open as I also ran into the the brokenness logged by aspect in the previous comment. The issue seems to be tclZlib.c line 1210: 
      
      if (size == 0) { return TCL_OK; }
      
      Since finalize calls with zero length data that line returns.
      
    3. login: "apnadkarni"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. status changed to: "Open"
  6. Ticket change [b4705dbb2b] (rid 151869) by aspect on 2017-02-11 05:09:58:

    1. icomment:
      Added test and fix in [bug-25842c161f].
      
      The API feels fragile with all these changes going on, but that's largely (as dkf observes) due to zlib's weird rules not mapping well to what Tcl wants from a channel layer.
      
    2. login: "aspect"
    3. mimetype: "text/plain"
  7. Ticket change [982f175715] (rid 152040) by dkf on 2017-02-26 15:34:55:

    1. closedate changed to: "2457811.14925657"
    2. closer changed to: "dkf"
    3. icomment:
      Branch committed to main release branches; thanks for the test cases (which I tweaked so that they were a little less mysterious when they failed).
      
    4. login: "dkf"
    5. mimetype: "text/html"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"