]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: hno
authoramosjeffries <>
Tue, 26 Feb 2008 06:07:29 +0000 (06:07 +0000)
committeramosjeffries <>
Tue, 26 Feb 2008 06:07:29 +0000 (06:07 +0000)
Bug #2164: assertion failed: stmem.cc:321: "candidate.offset >= 0"

failed to handle responses >2GB properly unless compiled with 64-bit disk I/O.

this due to abuse of off_t where int64_t is intended.

src/ESIContext.h
src/Server.h

index 240ab3af819c5cf12949ca32dd6efe92090b29e3..329018491d85c871d86bfe7f38c15f8a756a7a9f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ESIContext.h,v 1.4 2003/08/04 22:14:40 robertc Exp $
+ * $Id: ESIContext.h,v 1.4.4.1 2008/02/25 23:07:29 amosjeffries Exp $
  *
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -133,8 +133,8 @@ int detached:
      * for some reason 
      */
     size_t outbound_offset;
-    off_t readpos; /* the logical position we are reading from */
-    off_t pos; /* the logical position of outbound_offset in the data stream */
+    int64_t readpos; /* the logical position we are reading from */
+    int64_t pos; /* the logical position of outbound_offset in the data stream */
 
     class ParserState
     {
index eef3f5d2b8acf98cf7a912afeccad6e263727beb..e0aeb0b5c000d249e080ca35897dc4941d9fc324 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: Server.h,v 1.10 2007/09/27 14:34:06 rousskov Exp $
+ * $Id: Server.h,v 1.10.2.1 2008/02/25 23:07:29 amosjeffries Exp $
  *
  * AUTHOR: Duane Wessels
  *
@@ -163,7 +163,7 @@ protected:
     size_t replyBodySpace(size_t space = 4096 * 10);
 
     // These should be private
-    off_t currentOffset;       // Our current offset in the StoreEntry
+    int64_t currentOffset;     // Our current offset in the StoreEntry
     MemBuf *responseBodyBuffer;        // Data temporarily buffered for ICAP
 
 public: // should not be