diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-06-01 09:54:21 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2019-06-01 09:54:21 +0000 |
commit | d50aed6352e54696b5b1864afdeb77e3046a01e1 (patch) | |
tree | 7d86cfba26a2c2f45742bc3dcab7581374355933 /Build/source/texk/dvipdfm-x/unicode.c | |
parent | c3b919224b2b02826bddf55535535ab47638844d (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/source/texk/dvipdfm-x/unicode.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |