summaryrefslogtreecommitdiff
path: root/Build/source/texk/dviljk/config.h
diff options
context:
space:
mode:
authorJoachim Schrod <jschrod@acm.org>2007-06-28 11:34:05 +0000
committerJoachim Schrod <jschrod@acm.org>2007-06-28 11:34:05 +0000
commitaeefc403ad4b686d3d937865747ed18de040cd4a (patch)
tree6ead322e625b99dc9b865d9f8dbd29a66f368ec6 /Build/source/texk/dviljk/config.h
parentfe35736cf7c6bc7b294041ddf00c2139402dfd74 (diff)
Fix many buffer overflows, caused by unchecked string operations
and arbitrary access to arrays. git-svn-id: svn://tug.org/texlive/trunk@4523 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dviljk/config.h')
-rw-r--r--Build/source/texk/dviljk/config.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/Build/source/texk/dviljk/config.h b/Build/source/texk/dviljk/config.h
index 2c7f7498939..9d9ffb613c6 100644
--- a/Build/source/texk/dviljk/config.h
+++ b/Build/source/texk/dviljk/config.h
@@ -216,12 +216,7 @@ typedef SCHAR_TYPE signed_char;
#endif
#ifndef KPATHSEA
-extern bool findfile(
-#if NeedFunctionPrototypes
-char path[], char n[], long4 fontmag, char name[],
- bool tfm, int level
-#endif
- );
+#error "Would need changed findfile, dviljk has changed allocation semantic of name member in tfontptr"
#endif
@@ -444,3 +439,9 @@ typedef FILE *FILEPTR;
/* If we have neither, should fall back to fprintf with fixed args. */
#endif
#endif
+
+#ifndef KPATHSEA
+/* FIXME: Should provide a strdup function. But currently this tree is
+ only used in connection with kpathsea anyhow. */
+#error "Need xstrdup and xmalloc function, e.g. from kpathsea"
+#endif