Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b7ac02ec3547c5cf1c39d2626512091104cd93b2
Ticket: 25842c161fd621d8d111430a3637688f55aeaa94
zlib deflate streaming raises error in case of zero length input
User & Date: aspect on 2016-09-03 08:44:05
Changes

  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"