- John Wilkinson filed bug #2155496

(http://curl.haxx.se/bug/view.cgi?id=2155496) pointing out an error case
  without a proper human-readable error message. When a read callback returns
  a too large value (like when trying to return a negative number) it would
  trigger and the generic error message then makes the proplem slightly
  different to track down. I've added an error message for this now.
This commit is contained in:
Daniel Stenberg 2008-10-15 07:43:48 +00:00
parent 1667890172
commit 0ecdcc253b
2 changed files with 9 additions and 0 deletions

View file

@ -152,6 +152,7 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp)
else if((size_t)nread > buffersize) {
/* the read function returned a too large value */
*nreadp = 0;
failf(data, "read function returned funny value");
return CURLE_READ_ERROR;
}