cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: libcurl + https + multi = lost information

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 22 Mar 2008 22:24:27 +0100 (CET)

On Tue, 18 Mar 2008, REISS Pierre wrote:

> I tried to use "https://sourceforge.net/" like in docs/examples/https.c
> Unfortunately, that works fine with my scheme (1 URL in easy mode + 2 URLs
> in multi mode).

Can you find any reasonable explanation to this? Why would the actual URL or
contents matter to this problem?

Anyway, your example code segfaults for me and valgrind reports as below.
Please address this and can you please make the example more clearly describe
when and how the error gets visible for someone who runs it?

==17133== Invalid write of size 1
==17133== at 0x4024BD7: memcpy (mc_replace_strmem.c:402)
==17133== by 0x804C3A9: VeriSign(int&) (in
/home/daniel/src/curl/debug/Main)
==17133== by 0x804BAAA: main (in /home/daniel/src/curl/debug/Main)
==17133== Address 0xa is not stack'd, malloc'd or (recently) free'd
==17133==
==17133== Process terminating with default action of signal 11 (SIGSEGV)
==17133== Access not within mapped region at address 0xA
==17133== at 0x4024BD7: memcpy (mc_replace_strmem.c:402)
==17133== by 0x804C3A9: VeriSign(int&) (in
/home/daniel/src/curl/debug/Main)
==17133== by 0x804BAAA: main (in /home/daniel/src/curl/debug/Main)

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-03-22