curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Should CURLOPT_READFUNCTION need EOF twice?

From: Jiří Hruška via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 16 Nov 2023 04:57:33 +0100

> Then I found that it is this part of readwrite_upload() which limits the
> exposure of this bug:

I forgot to add, this piece of code actually also _introduced_ the bug.
Because before that, further reads were made only to an empty buffer.

https://github.com/curl/curl/commit/7f43f3dc5994d01b12eb1dfe2ebf5e8371b4e32b

So it seems like a regression since 7.84.0 only (June 2022).
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-11-16