Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl2/xcvs/dist/src Move the arbitrary limit on numb...
details: https://anonhg.NetBSD.org/src/rev/d4f8ef75bf9b
branches: trunk
changeset: 331382:d4f8ef75bf9b
user: apb <apb%NetBSD.org@localhost>
date: Sun Aug 10 07:33:37 2014 +0000
description:
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.
diffstat:
external/gpl2/xcvs/dist/src/server.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r c76cebf96069 -r d4f8ef75bf9b external/gpl2/xcvs/dist/src/server.c
--- a/external/gpl2/xcvs/dist/src/server.c Sun Aug 10 07:32:44 2014 +0000
+++ b/external/gpl2/xcvs/dist/src/server.c Sun Aug 10 07:33:37 2014 +0000
@@ -153,6 +153,8 @@
static char **argument_vector;
static int argument_vector_size;
+#define MAXARGS 1000000 /* arbitrary limit */
+
/*
* This is where we stash stuff we are going to use. Format string
* which expects a single directory within it, starting with a slash.
@@ -1130,7 +1132,7 @@
if (proxy_log) return;
#endif /* PROXY_SUPPORT */
- if (lim < 0 || lim > 1000000)
+ if (lim < 0 || lim > MAXARGS)
return;
p = xmalloc (strlen (server_temp_dir) + 2 * lim + 10);
if (p == NULL)
@@ -2989,7 +2991,7 @@
if (error_pending()) return;
- if (argument_count >= 1000000)
+ if (argument_count >= MAXARGS)
{
if (alloc_pending (80))
sprintf (pending_error_text,
Home |
Main Index |
Thread Index |
Old Index