Menu

#1194 Dereference of NULL pointer

closed-fixed
crash (3)
5
2014-08-19
2013-02-13
i.s.k.a.
No

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:

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;
}

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2013-02-13

    Thanks, this problem is already fixed in git commit da3fc1ee91de656a

     
  • Daniel Stenberg

    Daniel Stenberg - 2013-02-13
    • status: open --> closed-fixed
    • milestone: -->