cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1194 Dereference of NULL pointer

From: i.s.k.a. <bigeyes_inc_at_users.sf.net>
Date: Wed, 13 Feb 2013 10:03:05 +0000

---
** [bugs:#1194] Dereference of NULL pointer**
**Status:** open
**Labels:** crash 
**Created:** Wed Feb 13, 2013 10:03 AM UTC by i.s.k.a.
**Last Updated:** Wed Feb 13, 2013 10:03 AM UTC
**Owner:** Daniel Stenberg
libcurl 7.29.0 crashes under following conditions:
The initialization followed by cleanup of multi interface causes segfault due to dereferencing NULL pointer. This code wont work:
~~~~~~
:::c
int main(void)
{
    curl_global_init(CURL_GLOBAL_ALL);
    CURLM *multi_handle = NULL;
    multi_handle = curl_multi_init();
    if (multi_handle)
        curl_multi_cleanup(multi_handle); // << Segfault here (multi.c:1776)
    curl_global_cleanup();
    return 0;
}
~~~~~~
---
Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/curl/bugs/1194/>
To unsubscribe from further messages, please visit <https://sourceforge.net/auth/prefs/>
Received on 2013-02-13

These mail archives are generated by hypermail.

donate! Page updated January 05, 2012.
web site info

File upload with ASP.NET