summaryrefslogtreecommitdiff
path: root/inline.h
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-09-10 22:27:37 -0600
committerKarl Williamson <khw@cpan.org>2016-09-17 21:10:50 -0600
commit8875bd4810684429d98f935fba9e6e016f1b9ca7 (patch)
treef250ab9c9ee75b23a6292cd91aabb82db676fe0f /inline.h
parent085b753446f9c21f09e86beb916fb5b857faf36d (diff)
downloadperl-8875bd4810684429d98f935fba9e6e016f1b9ca7.tar.gz
Fix off-by-one error in is_utf8_valid_partial_char()
Diffstat (limited to 'inline.h')
-rw-r--r--inline.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/inline.h b/inline.h
index b667cddbf8..5384281301 100644
--- a/inline.h
+++ b/inline.h
@@ -533,7 +533,7 @@ S_is_utf8_valid_partial_char(const U8 * const s, const U8 * const e)
PERL_ARGS_ASSERT_IS_UTF8_VALID_PARTIAL_CHAR;
- if (s >= e || s + UTF8SKIP(s) < e) {
+ if (s >= e || s + UTF8SKIP(s) <= e) {
return FALSE;
}