texlive[58431] Build/source/texk/web2c/pdftexdir: error message

commits+karl at tug.org commits+karl at tug.org
Tue Mar 16 22:48:03 CET 2021


Revision: 58431
          http://tug.org/svn/texlive?view=revision&revision=58431
Author:   karl
Date:     2021-03-16 22:48:02 +0100 (Tue, 16 Mar 2021)
Log Message:
-----------
error message instead of assertion

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
    trunk/Build/source/texk/web2c/pdftexdir/writefont.c

Modified: trunk/Build/source/texk/web2c/pdftexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2021-03-16 21:21:41 UTC (rev 58430)
+++ trunk/Build/source/texk/web2c/pdftexdir/ChangeLog	2021-03-16 21:48:02 UTC (rev 58431)
@@ -1,3 +1,8 @@
+2021-03-16  Karl Berry  <karl at freefriends.org>
+
+	* writefont.c (write_fontdictionary): pdftex_fail with message
+	instead of assertion. From Martin Budaj, Mar 16, 2021 at 8:47 AM.
+
 2021-02-22  Phelype Oleinik  <phe.h.o1 at gmail.com>
 
 	* pdftex.web: avoid "expansion depth" overflow with \numexpr.

Modified: trunk/Build/source/texk/web2c/pdftexdir/writefont.c
===================================================================
--- trunk/Build/source/texk/web2c/pdftexdir/writefont.c	2021-03-16 21:21:41 UTC (rev 58430)
+++ trunk/Build/source/texk/web2c/pdftexdir/writefont.c	2021-03-16 21:48:02 UTC (rev 58431)
@@ -1,5 +1,5 @@
 /* writefont.c: font descriptors and writing Type 1 fonts.
-Copyright 1996-2018 Han The Thanh, <thanh at pdftex.org>
+Copyright 1996-2021 Han The Thanh, <thanh at pdftex.org>
 
 This file is part of pdfTeX.
 
@@ -552,7 +552,9 @@
             fo->tounicode_objnum =
                 write_tounicode(fo->fe->glyph_names, fo->fm->tfm_name, fo->fe->name);
         } else if (is_type1(fo->fm)) {
-            assert(fo->fd->builtin_glyph_names != NULL);
+            if (fo->fd->builtin_glyph_names==NULL) {
+              pdftex_fail("builtin glyph names is empty");
+            }
             fo->tounicode_objnum =
                 write_tounicode(fo->fd->builtin_glyph_names, fo->fm->tfm_name, NULL);
         }



More information about the tex-live-commits mailing list.