gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 113/163: netrc: use a larger buffer


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 113/163: netrc: use a larger buffer
Date: Sun, 05 Aug 2018 12:37:19 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit a3b7cb7e84171d3d01217c622fa4932eafc5cced
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sat Jun 23 21:32:22 2018 +0200

    netrc: use a larger buffer
    
    ... to work with longer passwords etc. Grow it from a 256 to a 4096
    bytes buffer.
    
    Reported-by: Dario Nieuwenhuis
    Fixes #2676
    Closes #2680
---
 lib/netrc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/netrc.c b/lib/netrc.c
index dbcc59ac9..a407bdaac 100644
--- a/lib/netrc.c
+++ b/lib/netrc.c
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2017, Daniel Stenberg, <address@hidden>, et al.
+ * Copyright (C) 1998 - 2018, Daniel Stenberg, <address@hidden>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -115,7 +115,7 @@ int Curl_parsenetrc(const char *host,
     char *tok;
     char *tok_buf;
     bool done = FALSE;
-    char netrcbuffer[256];
+    char netrcbuffer[4096];
     int  netrcbuffsize = (int)sizeof(netrcbuffer);
 
     while(!done && fgets(netrcbuffer, netrcbuffsize, file)) {

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



reply via email to

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