realloc(): invalid next size

Posted by Kewley on Stack Overflow See other posts from Stack Overflow or by Kewley
Published on 2010-05-30T14:49:44Z Indexed on 2010/05/30 14:52 UTC
Read the original article Hit count: 364

Filed under:
|
|

I'm having a problem with the realloc function. I'm using C only (so no vector) with LibCurl. The problem I'm having is that I'm getting the following error (realloc(): invalid next size) on the 12th iteration of the write_data function (the function I pass to Curl as a callback, it is called each time libcurl has some data to pass back (data is passed in chunks) ).

Trace:

Source: http://pastebin.com/WBWhV5fr

Thanks in advance,

© Stack Overflow or respective owner

Related posts about c

    Related posts about libcurl