projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e52dd
)
Fix unsigned integral math check in add_buffer_send()
author
Yang Tse
<yangsita@gmail.com>
Fri, 16 Nov 2007 01:19:46 +0000
(
01:19
+0000)
committer
Yang Tse
<yangsita@gmail.com>
Fri, 16 Nov 2007 01:19:46 +0000
(
01:19
+0000)
lib/http.c
patch
|
blob
|
history
diff --git
a/lib/http.c
b/lib/http.c
index
d0d3bc1
..
00b91a5
100644
(file)
--- 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);