mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:33:37 +03:00
tool_paramhlp: bump maximum post data size in memory to 16GB
- stick to 2GB for 32bit systems. Reported-by: Tim Yuer Fixes #14521 Closes #14523
This commit is contained in:
parent
8ae7049f4b
commit
ad6320b8a5
2 changed files with 6 additions and 4 deletions
|
|
@ -30,7 +30,11 @@ struct getout *new_getout(struct OperationConfig *config);
|
|||
|
||||
ParameterError file2string(char **bufp, FILE *file);
|
||||
|
||||
#define MAX_FILE2MEMORY (1024*1024*1024) /* big enough ? */
|
||||
#if SIZEOF_SIZE_T > 4
|
||||
#define MAX_FILE2MEMORY (16LL*1024*1024*1024)
|
||||
#else
|
||||
#define MAX_FILE2MEMORY (INT_MAX)
|
||||
#endif
|
||||
|
||||
ParameterError file2memory(char **bufp, size_t *size, FILE *file);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue