]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_parsecfg: accept line lengths up to 10M
authorDaniel Stenberg <daniel@haxx.se>
Thu, 13 Jul 2023 06:49:20 +0000 (08:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 Jul 2023 13:16:41 +0000 (15:16 +0200)
Bumped from 100K set in 47dd957daff9

Reported-by: Antoine du Hamel
Fixes #11431
Closes #11435

docs/cmdline-opts/config.d
src/tool_parsecfg.c

index 0fbf9d9953a2a53377124443a3f757fec5288269..d57579ce5015f3bfb1b1716bd359ed1f1314af41 100644 (file)
@@ -29,7 +29,8 @@ preceding any other letter is ignored.
 If the first column of a config line is a '#' character, the rest of the line
 will be treated as a comment.
 
-Only write one option per physical line in the config file.
+Only write one option per physical line in the config file. A single line is
+required to be no more than 10 megabytes (since 8.2.0).
 
 Specify the filename to --config as '-' to make curl read the file from stdin.
 
index a93e20ec74636dd96f2f547053b56e9406ab2868..0bc69646b09d3d0d707f248639382deb3df8654b 100644 (file)
@@ -43,7 +43,7 @@
 
 static const char *unslashquote(const char *line, char *param);
 
-#define MAX_CONFIG_LINE_LENGTH (100*1024)
+#define MAX_CONFIG_LINE_LENGTH (10*1024*1024)
 static bool my_get_line(FILE *fp, struct curlx_dynbuf *, bool *error);
 
 #ifdef WIN32