]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2090: assertion failed: client_side_request.cc:912: "contentLength >= 0"
authorhno <>
Fri, 28 Sep 2007 04:42:08 +0000 (04:42 +0000)
committerhno <>
Fri, 28 Sep 2007 04:42:08 +0000 (04:42 +0000)
One more 2GB issue. ClientHttpRequest::gotEnough() stored content-length
into an int..

src/client_side_request.cc

index 04389a0a4cd7bee65f547cac6095fcfc99a3994c..06ecf27d113e256b17edaf992d27e8dcd4bd9526 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_request.cc,v 1.92 2007/08/13 17:20:51 hno Exp $
+ * $Id: client_side_request.cc,v 1.93 2007/09/27 22:42:08 hno Exp $
  * 
  * DEBUG: section 85    Client-side Request Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -907,7 +907,7 @@ bool
 ClientHttpRequest::gotEnough() const
 {
     /** TODO: should be querying the stream. */
-    int contentLength =
+    int64_t contentLength =
         memObject()->getReply()->bodySize(request->method);
     assert(contentLength >= 0);