From: hno <> Date: Tue, 8 Jan 2008 00:10:22 +0000 (+0000) Subject: Bug #2164: assertion failed: stmem.cc:321: "candidate.offset >= 0" X-Git-Tag: BASIC_TPROXY4~204 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4d72ba2d5e5160545ea36bdbeddfe307b79a2af;p=thirdparty%2Fsquid.git 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. --- diff --git a/src/ESIContext.h b/src/ESIContext.h index 240ab3af81..909d95b3b8 100644 --- a/src/ESIContext.h +++ b/src/ESIContext.h @@ -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 { diff --git a/src/Server.h b/src/Server.h index eef3f5d2b8..5c221be4ff 100644 --- a/src/Server.h +++ b/src/Server.h @@ -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