Move the arbitrary limit on number of files per commit into
#define MAXARGS. The limit used to be 10000, but was changed to 1000000 earlier today.
This commit is contained in:
parent
301bfd65f3
commit
a44c2d1c74
6
external/gpl2/xcvs/dist/src/server.c
vendored
6
external/gpl2/xcvs/dist/src/server.c
vendored
@ -153,6 +153,8 @@ static int argument_count;
|
|||||||
static char **argument_vector;
|
static char **argument_vector;
|
||||||
static int argument_vector_size;
|
static int argument_vector_size;
|
||||||
|
|
||||||
|
#define MAXARGS 1000000 /* arbitrary limit */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is where we stash stuff we are going to use. Format string
|
* This is where we stash stuff we are going to use. Format string
|
||||||
* which expects a single directory within it, starting with a slash.
|
* which expects a single directory within it, starting with a slash.
|
||||||
@ -1130,7 +1132,7 @@ serve_max_dotdot (char *arg)
|
|||||||
if (proxy_log) return;
|
if (proxy_log) return;
|
||||||
#endif /* PROXY_SUPPORT */
|
#endif /* PROXY_SUPPORT */
|
||||||
|
|
||||||
if (lim < 0 || lim > 1000000)
|
if (lim < 0 || lim > MAXARGS)
|
||||||
return;
|
return;
|
||||||
p = xmalloc (strlen (server_temp_dir) + 2 * lim + 10);
|
p = xmalloc (strlen (server_temp_dir) + 2 * lim + 10);
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
@ -2989,7 +2991,7 @@ serve_argument (char *arg)
|
|||||||
|
|
||||||
if (error_pending()) return;
|
if (error_pending()) return;
|
||||||
|
|
||||||
if (argument_count >= 1000000)
|
if (argument_count >= MAXARGS)
|
||||||
{
|
{
|
||||||
if (alloc_pending (80))
|
if (alloc_pending (80))
|
||||||
sprintf (pending_error_text,
|
sprintf (pending_error_text,
|
||||||
|
Loading…
Reference in New Issue
Block a user