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
- assignee changed to: "hobbs"
- cmimetype changed to: "text/plain"
- 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 - foundin changed to: "obsolete: 8.5.3"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "matzek"
- subsystem changed to: "29. http Package"
- title changed to:
bogus CRC mismatches in ::http::Gunzip on 64bit architecture
- type changed to: "Bug"