cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Question about compatibility with TBB allocator

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 19 Sep 2012 23:00:14 +0200 (CEST)

On Wed, 19 Sep 2012, Rob Romano wrote:

> Certainly, I am finding evidence that memory corruption may exist in the Qt
> version I am using. There is no doubt that Qt statically initializes and
> de-initializes data simply by linking to it, too.
>
> Can someone here confirm that unless you call curl_global_init or
> curl_easy_init, no static data gets initialized in libcurl?  

I don't think we can say that for sure.

First, if you don't call curl_global_init() yourself - ever - then libcurl
will do it for you at first real use.

Then, libcurl is often built to use one or more third party libraries that
provide functionality and features you may want. I don't think we can or
should claim things with absolute confidence on the behalf of those libs and
what they could possibly do in edge cases or what not.

libcurl itself uses a limited set of static/global data.

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-19