diff options
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/pdftexdir/writefont.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index b7423541d95..91250e3fb29 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,3 +1,8 @@ +2021-03-16 Karl Berry <karl@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@gmail.com> * pdftex.web: avoid "expansion depth" overflow with \numexpr. diff --git a/Build/source/texk/web2c/pdftexdir/writefont.c b/Build/source/texk/web2c/pdftexdir/writefont.c index ec073e0edff..5f67a348bae 100644 --- a/Build/source/texk/web2c/pdftexdir/writefont.c +++ b/Build/source/texk/web2c/pdftexdir/writefont.c @@ -1,5 +1,5 @@ /* writefont.c: font descriptors and writing Type 1 fonts. -Copyright 1996-2018 Han The Thanh, <thanh@pdftex.org> +Copyright 1996-2021 Han The Thanh, <thanh@pdftex.org> This file is part of pdfTeX. @@ -552,7 +552,9 @@ static void write_fontdictionary(fo_entry * fo) 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); } |