texlive[50098] Build/source/texk/dvipdfm-x: dvipdfm-x: fix a bug in

commits+hironobu at tug.org commits+hironobu at tug.org
Sat Feb 23 10:52:51 CET 2019


Revision: 50098
          http://tug.org/svn/texlive?view=revision&revision=50098
Author:   hironobu
Date:     2019-02-23 10:52:51 +0100 (Sat, 23 Feb 2019)
Log Message:
-----------
dvipdfm-x: fix a bug in tt_post.c

Modified Paths:
--------------
    trunk/Build/source/texk/dvipdfm-x/ChangeLog
    trunk/Build/source/texk/dvipdfm-x/tt_post.c

Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog	2019-02-23 05:03:19 UTC (rev 50097)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog	2019-02-23 09:52:51 UTC (rev 50098)
@@ -1,3 +1,9 @@
+2019-02-23  Hironobu Yamashita  <h.y.acetaminophen at 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 at tug.org>
 
 	* configure.ac,

Modified: trunk/Build/source/texk/dvipdfm-x/tt_post.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/tt_post.c	2019-02-23 05:03:19 UTC (rev 50097)
+++ trunk/Build/source/texk/dvipdfm-x/tt_post.c	2019-02-23 09:52:51 UTC (rev 50098)
@@ -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 @@
 
   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;



More information about the tex-live-commits mailing list