diff options
author | patthoyts <patthoyts@noemail.net> | 2008-08-11 14:39:36 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@noemail.net> | 2008-08-11 14:39:36 (GMT) |
commit | c83e08d24bd4d2bf98ba4646f42d272061c9fc6b (patch) | |
tree | fb3be75597dee9fabc9a4c9fbb31687ba598654e /library | |
parent | 4d009641582c68fee7b5b41de88db1491c51e44b (diff) | |
download | tcl-c83e08d24bd4d2bf98ba4646f42d272061c9fc6b.zip tcl-c83e08d24bd4d2bf98ba4646f42d272061c9fc6b.tar.gz tcl-c83e08d24bd4d2bf98ba4646f42d272061c9fc6b.tar.bz2 |
crc field from zlib data should be treated as unsigned for 64bit support [Bug 2046846]
FossilOrigin-Name: ef5481bca165fa80ef17748d712738fba798a7c4
Diffstat (limited to 'library')
-rw-r--r-- | library/http/http.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index 84a1da2..c5ad8d6 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -8,7 +8,7 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.67 2008/03/12 10:01:02 hobbs Exp $ +# RCS: @(#) $Id: http.tcl,v 1.68 2008/08/11 14:39:39 patthoyts Exp $ package require Tcl 8.4 # Keep this in sync with pkgIndex.tcl and with the install directories @@ -1406,7 +1406,7 @@ proc http::Gunzip {data} { incr pos } - binary scan [string range $data end-7 end] ii crc size + binary scan [string range $data end-7 end] iuiu crc size set inflated [zlib inflate [string range $data $pos end-8]] if { $crc != [set chk [zlib crc32 $inflated]] } { |