]> granicus.if.org Git - curl/commit
cookie: fix and optimize 2nd top level domain name extraction
authorPatrick Monnerat <patrick@monnerat.net>
Wed, 4 Apr 2018 13:28:28 +0000 (15:28 +0200)
committerPatrick Monnerat <patrick@monnerat.net>
Wed, 4 Apr 2018 13:28:28 +0000 (15:28 +0200)
commit82dfdac5f797d2e906b94aef3f82b6a80353a575
treed54fe59494f19ed8de89b593d72b1829daee38f0
parent256b80fe81ad6de63e7fcffbef5e2ce554319ae8
cookie: fix and optimize 2nd top level domain name extraction

This fixes a segfault occurring when a name of the (invalid) form "domain..tld"
is processed.

test46 updated to cover this case.

Follow-up to commit c990ead.

Ref: https://github.com/curl/curl/pull/2440
lib/cookie.c
tests/data/test46