Well, the cookies are set manually so they may not be well formed. Ii.e. they come from javascript, not http, so they may not be well formed. My application just passes them to libcurl without validation. Indeed there are sometimes doubled path and/or domain parts in them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Patch for lib/cookie.c
oh, do you by any chance receive cookies with multiple domain and path properties? Or how did you end up with a leak for these?
cookie leak fix with strstore()
Assuming that was the case, can you give me your opinion on my suggested fix for this as I just attached here?
Well, the cookies are set manually so they may not be well formed. Ii.e. they come from javascript, not http, so they may not be well formed. My application just passes them to libcurl without validation. Indeed there are sometimes doubled path and/or domain parts in them.
Thanks, this helps as well.
I suggest changing the type of the second argument of strstore() to const char * to get rid of those compiler warnings.
Thanks, I did that and committed this fix just now. If you tell me your full name I'll give you the proper credit for this find in the changelog etc.