cURL / Mailing Lists / curl-library / Single Mail


Re: Memory corruption on WriteMemoryCallback (HEADERFUNCTION/WRITEHEADER)

From: Daniel Stenberg <>
Date: Fri, 20 May 2005 23:29:22 +0200 (CEST)

On Fri, 20 May 2005, rc wrote:

> The use of HEADERFUNCTION/WRITEHEADER option while ftp uploading involve
> memory corruption:


> WriteMemory crashes when it is called on close connection by libcurl. data
> parameter is wrong.

I don't think this is libcurl's fault. The write callback works fine for a
zillion people. The write callback logic you use is also clearly copied from
the getinmemory.c example and that works as well.

I trust you use a recent libcurl version?

Can you please provide us with a full source code to an application that shows
this problem? Then we can compile and debug it in our ends to see what's going

  Commercial curl and libcurl Technical Support:
Received on 2005-05-20