Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f9baefd901f46ae3fa48a1637a161cb2f54d4110
Ticket: 2046486fffffffffffffffffffffffffffffffff
bogus CRC mismatches in ::http::Gunzip on 64bit architecture
User & Date: matzek on 2008-08-11 14:03:49
Changes

  1. assignee changed to: "hobbs"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Hi *,
    
    [binary scan i] delivers signed integers, while [zlib crc32] delivers unsigned integers. The appended patch will correct the crc from binary scan.
    
    Simple test case: create gzipped data that delivers such a CRC, i.e.
    
    $ dd if=/dev/zero bs=1 count=128 | gzip -1 > 128zeros.gz
    
    then run this small script:
    
    ----
    
    package r http 2.7
    
    set fh [open 128zeros.gz r]
    fconfigure $fh -encoding binary -translation binary
    set data [read $fh]
    close $fh
    
    ::http::Gunzip $data
    
    ----
    
    Result without patch:
    
    invalid data: checksum mismatch -1029113187 != 3265854109
        while executing
    "::http::Gunzip $data"
    
    kind regards
    -- Matthias Kraft
    
  4. foundin changed to: "obsolete: 8.5.3"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "matzek"
  10. subsystem changed to: "29. http Package"
  11. title changed to:
    bogus CRC mismatches in ::http::Gunzip on 64bit architecture
    
  12. type changed to: "Bug"