mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:43:47 +03:00
- bug report #2796358 (http://curl.haxx.se/bug/view.cgi?id=2796358) pointed
out that the cookie parser would leak memory when it parses cookies that are received with domain, path etc set multiple times in the same header. While such a cookie is questionable, they occur in the wild and libcurl no longer leaks memory for them. I added such a header to test case 8.
This commit is contained in:
parent
8fc17ed764
commit
1cf6c15ab4
4 changed files with 31 additions and 7 deletions
|
|
@ -38,6 +38,7 @@ Funny-head: yesyes
|
|||
Set-Cookie: foobar=name; domain=127.0.0.1; path=/;
|
||||
Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
|
||||
Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
|
||||
Set-Cookie: duplicate=test; domain=.0.0.1; domain=.0.0.1; path=/donkey;
|
||||
Set-Cookie: cookie=yes; path=/we;
|
||||
Set-Cookie: nocookie=yes; path=/WE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue