]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
netrc: support large file, longer lines, longer tokens
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Nov 2024 16:03:54 +0000 (17:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Nov 2024 17:20:28 +0000 (18:20 +0100)
Regression from 3b43a05e000aa8f6 (shipped in 8.11.0)

Reported-by: Moritz
Fixes #15513
Closes #15514

lib/netrc.c

index c23f927cef32d35059360f04be3c7833589f5df5..034c0307a43e3b86c9c004387cedf273588370e1 100644 (file)
@@ -58,9 +58,9 @@ enum found_state {
 #define NETRC_FAILED -1
 #define NETRC_SUCCESS 0
 
-#define MAX_NETRC_LINE 4096
-#define MAX_NETRC_FILE (64*1024)
-#define MAX_NETRC_TOKEN 128
+#define MAX_NETRC_LINE 16384
+#define MAX_NETRC_FILE (128*1024)
+#define MAX_NETRC_TOKEN 4096
 
 static CURLcode file2memory(const char *filename, struct dynbuf *filebuf)
 {