From: Daniel Stenberg Date: Thu, 7 Nov 2024 16:03:54 +0000 (+0100) Subject: [PATCH] netrc: support large file, longer lines, longer tokens X-Git-Tag: archive/raspbian/8.12.0+git20250209.89ed161+ds-1+rpi1~1^2^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c1c0f830bcbbdb1d8bf4bc45267c390c68482826;p=curl.git [PATCH] netrc: support large file, longer lines, longer tokens Regression from 3b43a05e000aa8f6 (shipped in 8.11.0) Reported-by: Moritz Fixes #15513 Closes #15514 Gbp-Pq: Name netrc_support_large_file_longer_lines_longer_tokens.patch --- diff --git a/lib/netrc.c b/lib/netrc.c index c23f927c..034c0307 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -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) {