cURL

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1335 segfault CURLOPT_HTTPHEADER v7.35.1-DEV

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Sat, 08 Feb 2014 16:20:34 +0000

- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -1,4 +1,3 @@
-
 With CURLOPT_HTTPHEADER set it core dumps:
 
 #include <stdio.h>

~~~~

- **status**: open --> closed-invalid
- **assigned_to**: Daniel Stenberg

---
** [bugs:#1335] segfault CURLOPT_HTTPHEADER v7.35.1-DEV**
**Status:** closed-invalid
**Created:** Sat Feb 08, 2014 05:27 AM UTC by Attila Mark
**Last Updated:** Sat Feb 08, 2014 05:27 AM UTC
**Owner:** Daniel Stenberg
With CURLOPT_HTTPHEADER set it core dumps:
#include <stdio.h>
#include <curl/curl.h>
int main( int argc, char *argv[]){
    CURL        *handle;
    CURLcode    res;
    curl_global_init(CURL_GLOBAL_ALL);
    if( !(handle = curl_easy_init())) return( 1);
    curl_easy_setopt( handle, CURLOPT_URL, "cvm:8080/list");
    curl_easy_setopt( handle, CURLOPT_VERBOSE, 1L);
    curl_easy_setopt( handle, CURLOPT_HTTPHEADER, "Accept: application/xml");
    if( (res = curl_easy_perform( handle)) != CURLE_OK){
        curl_easy_strerror(res);
    }
    curl_easy_cleanup( handle);
    return(0);
}
* About to connect() to cvm port 8080 (#0)
*   Trying 192.168.56.101... * connected
Segmentation fault (core dumped)
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-02-08

These mail archives are generated by hypermail.

donate! Page updated December 29, 2013.
web site info

File upload with ASP.NET