ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / cu / curlMinimal / fix-netrc-regression-2.patch
blob8cf36fea64b642e18398e14e32a6ed555fd4b46c
1 From 0cdde0fdfbeb8c35420f6d03fa4b77ed73497694 Mon Sep 17 00:00:00 2001
2 From: Daniel Stenberg <daniel@haxx.se>
3 Date: Thu, 7 Nov 2024 17:03:54 +0100
4 Subject: [PATCH] netrc: support large file, longer lines, longer tokens
6 Regression from 3b43a05e000aa8f6 (shipped in 8.11.0)
8 Reported-by: Moritz
9 Fixes #15513
10 Closes #15514
11 ---
12 lib/netrc.c | 6 +++---
13 1 file changed, 3 insertions(+), 3 deletions(-)
15 diff --git a/lib/netrc.c b/lib/netrc.c
16 index c23f927cef32d35059360f04be3c7833589f5df5..034c0307a43e3b86c9c004387cedf273588370e1 100644
17 --- a/lib/netrc.c
18 +++ b/lib/netrc.c
19 @@ -58,9 +58,9 @@ enum found_state {
20 #define NETRC_FAILED -1
21 #define NETRC_SUCCESS 0
23 -#define MAX_NETRC_LINE 4096
24 -#define MAX_NETRC_FILE (64*1024)
25 -#define MAX_NETRC_TOKEN 128
26 +#define MAX_NETRC_LINE 16384
27 +#define MAX_NETRC_FILE (128*1024)
28 +#define MAX_NETRC_TOKEN 4096
30 static CURLcode file2memory(const char *filename, struct dynbuf *filebuf)