diff options
author | Karl Williamson <khw@cpan.org> | 2016-09-10 22:27:37 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2016-09-17 21:10:50 -0600 |
commit | 8875bd4810684429d98f935fba9e6e016f1b9ca7 (patch) | |
tree | f250ab9c9ee75b23a6292cd91aabb82db676fe0f /inline.h | |
parent | 085b753446f9c21f09e86beb916fb5b857faf36d (diff) | |
download | perl-8875bd4810684429d98f935fba9e6e016f1b9ca7.tar.gz |
Fix off-by-one error in is_utf8_valid_partial_char()
Diffstat (limited to 'inline.h')
-rw-r--r-- | inline.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |