curl-library
first 94208 bytes corrupted! (Ubuntu 14)
Date: Fri, 23 May 2014 17:10:02 -0300
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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-05-23