summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog6
-rw-r--r--Build/source/texk/dvipdfm-x/tt_post.c4
2 files changed, 8 insertions, 2 deletions
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 <h.y.acetaminophen@gmail.com>
+
+ * 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 <karl@tug.org>
* 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;