summaryrefslogtreecommitdiff
path: root/Build/source/texk/makeindexk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-21 22:38:30 +0000
committerKarl Berry <karl@freefriends.org>2019-03-21 22:38:30 +0000
commit753320bd2091f6d09710da235a9511a39d81737a (patch)
tree7a64dac9f2a0d0a2e229889801885bac291ce399 /Build/source/texk/makeindexk
parentadff137a75df0be8145be4fb3a62dc6e7e5bec7b (diff)
increase ARGUMENT_MAX to 10240 (from 1024)
git-svn-id: svn://tug.org/texlive/trunk@50517 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/makeindexk')
-rw-r--r--Build/source/texk/makeindexk/ChangeLog5
-rw-r--r--Build/source/texk/makeindexk/mkind.h12
2 files changed, 8 insertions, 9 deletions
diff --git a/Build/source/texk/makeindexk/ChangeLog b/Build/source/texk/makeindexk/ChangeLog
index 070bab95cfa..5416765082f 100644
--- a/Build/source/texk/makeindexk/ChangeLog
+++ b/Build/source/texk/makeindexk/ChangeLog
@@ -1,3 +1,8 @@
+2019-03-21 Karl Berry <karl@tug.org>
+
+ * mkind.h (ARGUMENT_MAX): increase to 10240 from 1024,
+ since can be used with glossaries, etc. Found by Nicola Talbot.
+
2015-07-10 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am: Better dependencies for 'make check'.
diff --git a/Build/source/texk/makeindexk/mkind.h b/Build/source/texk/makeindexk/mkind.h
index cc58b680dd9..596637ecfa0 100644
--- a/Build/source/texk/makeindexk/mkind.h
+++ b/Build/source/texk/makeindexk/mkind.h
@@ -3,7 +3,7 @@
* This file is part of
* MakeIndex - A formatter and format independent index processor
*
- * Copyright (C) 1998-2012 by the TeX Live project.
+ * Copyright (C) 1998-2019 by the TeX Live project.
* Copyright (C) 1989 by Chen & Harrison International Systems, Inc.
* Copyright (C) 1988 by Olivetti Research Center
* Copyright (C) 1987 by Regents of the University of California
@@ -302,19 +302,13 @@ comments. However, no run-time check is made to ensure that these are
consistent, or reasonable! Therefore, change them only with great
care.
-The array sizes should be made generously large: there are a great
-many uses of strings in MakeIndex with the strxxx() and sprintf()
-functions where no checking is done for adequate target storage sizes.
-Although some input checking is done to avoid this possibility, it is
-highly likely that there are still several places where storage
-violations are possible, with core dumps, or worse, incorrect output,
-ensuing.
+If any array overflows, please report to tex-k@tug.org.
======================================================================*/
#define ARABIC_MAX 99 /* maximum digits in an Arabic page */
/* number field */
-#define ARGUMENT_MAX 1024 /* maximum length of sort or actual key */
+#define ARGUMENT_MAX 10240 /* maximum length of sort or actual key */
/* in index entry */
#define ARRAY_MAX 1024 /* maximum length of constant values in */