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: 8.7.1 : client read function EOF fail, only x/y of needed bytes read

From: Stefan Eissing via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 28 Mar 2024 10:41:23 +0100

> Am 28.03.2024 um 09:56 schrieb Matt Barnett <m.j.barnett_at_icloud.com>:
>
> After many hours I found the issue and it's not a bug - just something that we need to be aware of and change our code when using 8.7.1 vs 8.6.0
>
> We had been using hd_src = fopen(LOCAL_FILE, "r") but it needs to be hd_src = fopen(LOCAL_FILE, "rb");

Happy that you found it. We added the length checking in 8.7.1 in order to detect when the announced length does not match what the input delivers. Some servers might have weak checks on incoming content lengths, leading to errors being very hard to find.

Kind Regards,
Stefan
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-03-28