[tex-k] dvipsk

Daniel R. Grayson dan@math.uiuc.edu
Thu, 22 Feb 2001 16:44:49 -0600 (CST)


[Forwarding --karl]


in
	T1part.c version 1.59 beta  Copyright (C)1994, 1996

the following patch

    diff -ur /usr/local/src/jupiter/src/teTeX-1.0.7/texk/dvipsk/t1part.c dvipsk/t1part.c
    --- /usr/local/src/jupiter/src/teTeX-1.0.7/texk/dvipsk/t1part.c	Sat Mar  6 14:26:26 1999
    +++ dvipsk/t1part.c	Thu Feb 22 16:34:33 2001
    @@ -175,7 +175,7 @@
     typetemp  _HUGE   *end_of_scan;
     unsigned char *line;
     unsigned char *tmpline;
    -unsigned char token[64];
    +unsigned char token[4096];
     unsigned char notdef[]="/.notdef";
     #ifdef Omega
     unsigned char grid[65536];

fixes a problem in GetToken -- there is not checking for overflow, and it
could crash (and does) on a large token in an input file.

But there should be a better fix.