]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2164: assertion failed: stmem.cc:321: "candidate.offset >= 0"
authorhno <>
Tue, 8 Jan 2008 00:10:22 +0000 (00:10 +0000)
committerhno <>
Tue, 8 Jan 2008 00:10:22 +0000 (00:10 +0000)
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..909d95b3b8729de493d278ead39eb6ff4f336d14 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.5 2008/01/07 17:10:22 hno 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..5c221be4ff08c0d00098dc0ec84641cdc2474608 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.11 2008/01/07 17:10:22 hno 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