mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 09:21:50 -05:00
cookie: fix memory leak on oversized rejection
Regression brought by 2bc230de63b Detected by OSS-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3513 Assisted-by: Max Dymond Closes #1930
This commit is contained in:
parent
49d75a4c15
commit
20ea22ff73
@ -438,7 +438,7 @@ Curl_cookie_add(struct Curl_easy *data,
|
|||||||
/* too long individual name or contents, or too long combination of
|
/* too long individual name or contents, or too long combination of
|
||||||
name + contents. Chrome and Firefox support 4095 or 4096 bytes
|
name + contents. Chrome and Firefox support 4095 or 4096 bytes
|
||||||
combo. */
|
combo. */
|
||||||
free(co);
|
freecookie(co);
|
||||||
infof(data, "oversized cookie dropped, name/val %d + %d bytes\n",
|
infof(data, "oversized cookie dropped, name/val %d + %d bytes\n",
|
||||||
nlen, len);
|
nlen, len);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user