1 diff -up tetex-src-3.0/libs/t1lib/t1env.c.CVE-2007-4033 tetex-src-3.0/libs/t1lib/t1env.c
2 --- tetex-src-3.0/libs/t1lib/t1env.c.CVE-2007-4033 2004-01-27 23:26:31.000000000 +0100
3 +++ tetex-src-3.0/libs/t1lib/t1env.c 2007-11-02 12:48:20.000000000 +0100
4 @@ -568,6 +568,12 @@ char *intT1_Env_GetCompletePath( char *F
6 strcat( pathbuf, DIRECTORY_SEP);
7 /* And finally the filename: */
8 + /* If current pathbuf + StrippedName + 1 byte for NULL is bigger than pathbuf
9 + let's try next pathbuf */
10 + if( strlen(pathbuf) + strlen(StrippedName) + 1 > sizeof(pathbuf) ) {
14 strcat( pathbuf, StrippedName);
16 /* Check for existence of the path: */