--- texk/dvipsk/virtualfont.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) Index: texlive-bin-2009/texk/dvipsk/virtualfont.c =================================================================== --- texlive-bin-2009.orig/texk/dvipsk/virtualfont.c 2010-05-01 02:12:57.000000000 +0900 +++ texlive-bin-2009/texk/dvipsk/virtualfont.c 2010-05-01 02:16:19.000000000 +0900 @@ -36,7 +36,7 @@ * Subroutine vfbyte returns the next byte. */ static FILE *vffile ; -static char name[50] ; +static char name[500] ; void badvf(char *s) { @@ -93,6 +93,10 @@ if (*d==0) d = vfpath ; #endif + if (strlen(n) + 5 >= sizeof (name)) { + /* 5 for vf() + null */ + error("! VF file name too long in vfopen") ; + } #ifdef MVSXA /* IBM: MVS/XA */ (void)sprintf(name, "vf(%s)", n) ; #else