gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 237/256: cookie: fix memory leak on oversized rejec


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 237/256: cookie: fix memory leak on oversized rejection
Date: Fri, 06 Oct 2017 19:45:28 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 20ea22ff735097a02721fcb5cd44433973af6190
Author: Daniel Stenberg <address@hidden>
AuthorDate: Fri Sep 29 08:50:15 2017 +0200

    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
---
 lib/cookie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cookie.c b/lib/cookie.c
index 0374f94c1..1d7defd84 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -438,7 +438,7 @@ Curl_cookie_add(struct Curl_easy *data,
           /* too long individual name or contents, or too long combination of
              name + contents. Chrome and Firefox support 4095 or 4096 bytes
              combo. */
-          free(co);
+          freecookie(co);
           infof(data, "oversized cookie dropped, name/val %d + %d bytes\n",
                 nlen, len);
           return NULL;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]