curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: libcurl truncating long cookies?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 9 Sep 2017 11:08:46 +0200 (CEST)

On Fri, 8 Sep 2017, Kevin Smith via curl-library wrote:

> "If for some reason there is inadequate space to store the cookie, it must
> be discarded, not truncated." I am using libcurl 7.49.1 and I am seeing
> that cookies seem to get truncated when they are too long instead of
> discarded, is this expected?

I'd say it is a bug that also exist in current source code. I suspect that it
is just so extremely rare that people actually get that huge cookies so people
have not had a problem with this over the years (and I think browsers don't
support that big ones). I'm quite sure libcurl has always had this flawed
behavior.

Are you up to working out a fix for this issue?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2017-09-09