cURL / Mailing Lists / curl-library / Single Mail


Re: first 94208 bytes corrupted! (Ubuntu 14)

From: Ray Satiro <>
Date: Fri, 23 May 2014 13:36:57 -0700 (PDT)

Can you please give a short self contained example that can be compiled outright? On Friday, May 23, 2014 4:17 PM, Wagner Patriota <> wrote: A little more of Ubuntu 14... I have a download just like any other download... ... FILE * file = fopen( "/path/to/file", "wb+" ); curl_easy_setopt( curl, CURLOPT_URL, "http://my/url" ); curl_easy_setopt( curl, CURLOPT_WRITEFUNCTION, fwrite ); curl_easy_setopt( curl, CURLOPT_WRITEDATA, file ); ... curl_easy_perform( curl ); ... RANDOMLY, I get the first 94208 bytes corrupted! Actually they are all 0x00... 94208 times 0x00 and the rest of the file is correct! It seems that libCurl uses a buffer of 94208 bytes.... is this true? any hint on how only the first "chunk" is coming all null? should I give more details? or this is a kwon bug? Detail: it only happens on Ubuntu 14. Mac works fine. Windows works fine! ------------------------------------------------------------------- List admin: Etiquette:

List admin:
Received on 2014-05-23