cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH ]Cookie sort order not deterministic

From: Marc Hoersken <info_at_marc-hoersken.de>
Date: Sun, 7 Apr 2013 10:39:00 +0200

Hello everyone,

I noticed that the cookie sort order is not deterministic between
platforms if there are multiple cookies with the same path (length).
This makes testcase 62 fail on Windows.

In order to make the cookie sort function more deterministic, I would
like to propose a fallback-based approach: Compare the cookie
attributes in the following order:

  1. path length
  2. domain / host length
  3. name

Attached you will find a patch to implement this change. I would
kindly like to ask for review and feedback. Thanks in advance!

Best regards,
Marc

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2013-04-07