Skip to content
Tcl Source Code History Of Ticket 2046486fffffffff
Login

History Of Ticket 2046486fffffffff

Artifacts Associated With Ticket 2046486fffffffff

  1. Ticket change [f9baefd901] (rid 91747) by matzek on 2008-08-11 14:03:49:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "obsolete: 8.5.3"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "matzek"
    10. subsystem initialized to: "29. http Package"
    11. title initialized to:
      bogus CRC mismatches in ::http::Gunzip on 64bit architecture
      
    12. type initialized to: "Bug"
  2. Ticket change [d019e0e305] (rid 113108) by matzek on 2008-08-11 21:03:49:

    1. icomment:
      
      
      File Added - 288104: http.tcl.patch-1.67
      
      
      
    2. login: "matzek"
    3. mimetype: "text/plain"
    4. username: "matzek"
  3. Add attachment "http.tcl.patch-1.67" [02557800c3] (rid 119625) by matzek on 2008-08-11 21:03:49.

  4. Ticket change [1c98e8505c] (rid 90632) by patthoyts on 2008-08-11 21:17:48:

    1. assignee changed to: "patthoyts"
    2. priority changed to: "8"
  5. Ticket change [93de8f3a50] (rid 105876) by patthoyts on 2008-08-11 21:40:47:

    1. closedate changed to: "2008-08-11T14:40:47"
    2. closer changed to: "patthoyts"
    3. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      The problem is treating the crc and size fields in the gzip header as signed when they should be unsigned. Fixed simply by using binary scan $header iuiu crc size to use them as unsigned values.
      Committed to HEAD and 8.5 branch (not relevant to 8.4)
      
      
    4. login: "patthoyts"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "patthoyts"
  6. Ticket change [763f661e9c] (rid 105544) by dgp on 2008-08-11 22:52:32:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      This has been fixed in http 2.7.1.
      
      Is the bug also present in http 2.5.5 ?
      If so, is there any reasonable way to fix it
      to make an http 2.5.6 that can still be
      used in a Tcl 8.4 interp?
      
      
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. status changed to: "Open"
    5. username: "dgp"
  7. Ticket change [e559504cbe] (rid 88114) by dgp on 2008-08-11 22:56:27:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      For the sake of the ActiveTcl
      8.4 distributions that support
      Tcl Modules, an http 2.7.1 that
      fixes this bug and doesn't rely
      on Tcl 8.5 would be a good idea.
      
      Without that, AT 8.4 will continue
      to get buggy http 2.7 by default.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [631617f7b3] (rid 92515) by patthoyts on 2008-08-12 04:31:56:

    1. closedate changed to: "2008-08-11T21:31:56"
    2. closer changed to: "patthoyts"
    3. icomment:
      Logged In: YES 
      user_id=202636
      Originator: NO
      
      OK. making use of the binary scan like this isn't necessary so changed to apply a 32bit mask in the comparison instead which remains 8.4 compliant.
      
      
    4. login: "patthoyts"
    5. mimetype: "text/plain"
    6. status changed to: "Closed"
    7. username: "patthoyts"