cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] crash and a fix in Curl_http

From: Shmulik Regev <shmulbox_at_gmail.com>
Date: Sun, 15 Jul 2007 15:43:05 +0300

> I just now converted your application to test case 540 and committed it.
It
> runs fine for me... Can you please try it in your end, and possibly tweak
it
> to better match the scenario you're having to see if you can make it
repeat
> the problems you get?

I'm afraid the problem persists but _only_ when the HOST header is
artificially added to the easy handle, i.e. the following lines (which were
included in my test) are essential to reproduce the crash

  {
  char* host = malloc(strlen(url)+7);
  sprintf(host,"HOST: %s",url);
  headers = curl_slist_append(headers,host);
  curl_easy_setopt(eh, CURLOPT_HTTPHEADER,headers);
  }

The crash occurs on the second call to ''loop''.

We are using squid with basic authentication configured as following (in
squid.conf)

auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

BTW, I noticed that the CVS tree doesn't include the makefile.vc8 files (on
src or lib) while the source archive does.

Cheers,
Shmul
Received on 2007-07-15