From 035aa22dff1b55cd8da8dcd8fc12ae49dd4b6dc7 Mon Sep 17 00:00:00 2001 From: Hironobu Yamashita Date: Sat, 23 Feb 2019 09:52:51 +0000 Subject: dvipdfm-x: fix a bug in tt_post.c git-svn-id: svn://tug.org/texlive/trunk@50098 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfm-x/ChangeLog | 6 ++++++ Build/source/texk/dvipdfm-x/tt_post.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index b8f2eac34af..86ab8a01e50 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,9 @@ +2019-02-23 Hironobu Yamashita + + * tt_post.c (tt_lookup_post_table): Fix a bug that the loop + exceeds post->numberOfGlyphs (= the size of post->glyphNamePtr). + https://github.com/texjporg/tex-jp-build/issues/74 + 2019-02-11 Karl Berry * configure.ac, diff --git a/Build/source/texk/dvipdfm-x/tt_post.c b/Build/source/texk/dvipdfm-x/tt_post.c index 5137311fe0d..2a1cd8e1970 100644 --- a/Build/source/texk/dvipdfm-x/tt_post.c +++ b/Build/source/texk/dvipdfm-x/tt_post.c @@ -1,6 +1,6 @@ /* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks. - Copyright (C) 2002-2016 by Jin-Hwan Cho and Shunsaku Hirata, + Copyright (C) 2002-2019 by Jin-Hwan Cho and Shunsaku Hirata, the dvipdfmx project team. This program is free software; you can redistribute it and/or modify @@ -161,7 +161,7 @@ tt_lookup_post_table (struct tt_post_table *post, const char *glyphname) ASSERT(post && glyphname); - for (gid = 0; gid < post->count; gid++) { + for (gid = 0; gid < post->numberOfGlyphs; gid++) { if (post->glyphNamePtr[gid] && !strcmp(glyphname, post->glyphNamePtr[gid])) { return gid; -- cgit v1.2.3