From: Yang Tse Date: Fri, 16 Nov 2007 01:19:46 +0000 (+0000) Subject: Fix unsigned integral math check in add_buffer_send() X-Git-Tag: curl-7_18_0~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f05613fbbc6d90cfa20b0ee5e19e457b826c5c5;p=thirdparty%2Fcurl.git Fix unsigned integral math check in add_buffer_send() --- diff --git a/lib/http.c b/lib/http.c index d0d3bc1ea4..00b91a5d37 100644 --- a/lib/http.c +++ b/lib/http.c @@ -947,7 +947,7 @@ CURLcode add_buffer_send(send_buffer *in, headersize = size - included_body_bytes; /* the initial part that isn't body is header */ - DEBUGASSERT(headersize > 0); + DEBUGASSERT(size > included_body_bytes); #ifdef CURL_DOES_CONVERSIONS res = Curl_convert_to_network(conn->data, ptr, headersize);