summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2008-08-11 14:36:07 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2008-08-11 14:36:07 (GMT)
commit451e7dcd231cf65a8e9a52a1547ca494aa8d6aff (patch)
treec22b939f288b1e20254a11b92dc5a0ffeeaeeaed
parent85a12d44206a4671aacb86bd3b3df30cd0289739 (diff)
downloadtcl-451e7dcd231cf65a8e9a52a1547ca494aa8d6aff.zip
tcl-451e7dcd231cf65a8e9a52a1547ca494aa8d6aff.tar.gz
tcl-451e7dcd231cf65a8e9a52a1547ca494aa8d6aff.tar.bz2
crc field from zlib data should be treated as unsigned for 64bit support [Bug 2046846]
-rw-r--r--ChangeLog5
-rw-r--r--library/http/http.tcl4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b8f0c03..4ea4d81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-11 Pat Thoyts <patthoyts@users.sourceforge.net>
+
+ * library/http/http.tcl: crc field from zlib data should be treated as
+ unsigned for 64bit support [Bug 2046846]
+
2008-08-08 Don Porter <dgp@users.sourceforge.net>
*** 8.5.4 TAGGED FOR RELEASE ***
diff --git a/library/http/http.tcl b/library/http/http.tcl
index 84a1da2..c07ae2c 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.67.2.1 2008/08/11 14:36:09 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]] } {