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.

libcurl Version 7.66 crashes when uploading a file using https

From: Arun Jaganath via curl-library <>
Date: Wed, 27 Nov 2019 20:44:32 +0530


While upgrading from libcurl version 7.56.1 to 7.66, I am facing a crash.
This is while i am trying to upload a file in chunks using https protocol.
I have set the read callback function using

 curl_easy_setopt(m_curl_upload_resume, CURLOPT_READFUNCTION,

/* which file to upload */
curl_easy_setopt(m_curl_upload_resume, CURLOPT_READDATA, (void *)&hd);

I have modified CURL_MAX_WRITE_SIZE from 16384 to 1048608 in order to read
1MB. I have recompiled the libcurl Version 7.66 and observed the libcurl
crash while uploading. Following is the crash dump.
* read function returned funny value

*** Error in `./dtf_co: double free or corruption (!prev):
0x00007f0d58126cd0 ***
======= Backtrace: =========

What puzzles me is the same code works on the libcurl version 7.56.1 with
the CURL_MAX_WRITE_SIZE set to 1048608.

Any help is highly appreciated.

*Thanks and Regards,*
*Arun J*

Received on 2019-11-27