[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#136112: dvips: included fonts in EPSF files may produce bad PostScript



Package: tetex-bin
Version: 1.0.7+20011202-3.1
Severity: normal
Tags: patch

In some circumstances, 'dvips -E -i' can produce an invalid PostScript
file by miscounting the number of fonts it puts in a dictionary.  
A dvi file and corresponding EPSF files to produce the bug available on
request.

The patch is a one-line fix to finclude.c, which is obviously correct:
you should count the number of (font, resolution) pairs you _actually_
output, not the number that you _consider_ outputting.

Best,
	Dylan Thurston

--- finclude.c.orig     Wed Feb 27 14:53:50 2002
+++ finclude.c  Wed Feb 27 09:11:02 2002
@@ -520,9 +520,9 @@
          do {   if (f->psflag==EXISTS) {
                cmdout(f->scalename);
                lfontout((int)f->psname);
+              k++;
             }
             f = f->nextsize;
-            k++;
          } while (f!=NULL);
          numout((integer)k);
          cmdout("fstore");

-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux lotus 2.4.17 #1 Tue Jan 15 22:42:20 UTC 2002 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages tetex-bin depends on:
ii  debianutils           1.16               Miscellaneous utilities specific t
ii  dpkg                  1.9.19             Package maintenance system for Deb
ii  ed                    0.2-19             The classic unix line editor
ii  libc6                 2.2.5-3            GNU C Library: Shared libraries an
ii  libkpathsea3          1.0.7+20011202-3.1 shared libkpathsea for teTeX
ii  libpng2               1.0.12-3           PNG library - runtime
ii  libstdc++2.10-glibc2. 1:2.95.4-2         The GNU stdc++ library
ii  libtiff3g             3.5.5-6            Tag Image File Format library
ii  libxaw7               4.1.0-14           X Athena widget set library
ii  tetex-base            1.0.2+20011202-2   basic teTeX library files
ii  xlibs                 4.1.0-14           X Window System client libraries
ii  zlib1g                1:1.1.3-19         compression library - runtime




Reply to: