From aeefc403ad4b686d3d937865747ed18de040cd4a Mon Sep 17 00:00:00 2001 From: Joachim Schrod Date: Thu, 28 Jun 2007 11:34:05 +0000 Subject: 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 --- Build/source/texk/dviljk/config.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'Build/source/texk/dviljk/config.h') 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 -- cgit v1.2.3