summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2019-06-01 09:54:21 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2019-06-01 09:54:21 +0000
commitd50aed6352e54696b5b1864afdeb77e3046a01e1 (patch)
tree7d86cfba26a2c2f45742bc3dcab7581374355933 /Build
parentc3b919224b2b02826bddf55535535ab47638844d (diff)
Fix a bug that end of buffer check was wrong. (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@51284 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog4
-rw-r--r--Build/source/texk/dvipdfm-x/unicode.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 2acbde196ea..cb4eb2b55c7 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,7 @@
+2019-06-01 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
+
+ * unicode.c: Fix a bug that end of buffer check was wrong.
+
2019-05-26 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
* cmap_write.c, dvipdfmx.c, pdfdev.c, pdfdev.h, pdfdoc.c
diff --git a/Build/source/texk/dvipdfm-x/unicode.c b/Build/source/texk/dvipdfm-x/unicode.c
index 981fc123aac..9fc79c220f9 100644
--- a/Build/source/texk/dvipdfm-x/unicode.c
+++ b/Build/source/texk/dvipdfm-x/unicode.c
@@ -78,7 +78,7 @@ UC_UTF16BE_is_valid_string (const unsigned char *p, const unsigned char *endptr)
int
UC_UTF8_is_valid_string (const unsigned char *p, const unsigned char *endptr)
{
- if (p + 1 >= endptr)
+ if (p >= endptr)
return 0;
while (p < endptr) {
int32_t ucv = UC_UTF8_decode_char(&p, endptr);