curl-library
mprintf MAX_PARAMETERS (was RE: Stack smashed when linked with pthreads)
Date: Sat, 29 Jul 2006 23:20:52 +0200 (CEST)
On Fri, 28 Jul 2006, Gary Maxwell wrote:
> Well, going back and looking at the change, the hack wasn't as extensive as
> I remembered. This patch is generated off the current CVS tree:
Thanks for posting this, I can't see anything wrong with this patch, but the
need for it made me think:
1 - its a pity having to do two malloc()s in such a lowlevel function as they
are bound to make this function MUCH slower and thus slow down lots of
operations that use *printf() functions.
2 - MAX_PARAMETERS is currently set to 128 which is insanely much and nothing
in curl or libcurl is anywhere near this limit. The *printf() functions
are already marked for getting removed from the public API in a future
version so I think getting this limit more adjusted to libcurl usage makes
lots of sense... I can't see any reason why we should support more than 16
parameters.
If we'd lower the limit to 16, would the patch really still be need or wanted?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-07-29