Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/external/gpl2/xcvs/dist/src Pull up following revision(s)...
details: https://anonhg.NetBSD.org/src/rev/9a10f0e1608a
branches: netbsd-6
changeset: 776698:9a10f0e1608a
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Tue Sep 09 08:29:53 2014 +0000
description:
Pull up following revision(s) (requested by tls in ticket #1109):
external/gpl2/xcvs/dist/src/server.c: revision 1.7
Move the arbitrary limit on number of files per commit into
1000000 earlier today.
diffstat:
external/gpl2/xcvs/dist/src/server.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 8d262f98f739 -r 9a10f0e1608a external/gpl2/xcvs/dist/src/server.c
--- a/external/gpl2/xcvs/dist/src/server.c Tue Sep 09 08:28:32 2014 +0000
+++ b/external/gpl2/xcvs/dist/src/server.c Tue Sep 09 08:29:53 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