diff options
author | Vicent Marti <tanoku@gmail.com> | 2014-09-10 19:39:03 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2014-09-10 19:39:03 +0200 |
commit | c47e3a34adac00a262f72c6d17a1c87deefa33c4 (patch) | |
tree | 050271490a6d3c22e643fac0392193cd9ff19210 /src/utf8.h | |
parent | c04e1e7aef06ce0836984b17e48a1d09bb83ce04 (diff) |
Fix infinite loop when case folding invalid UTF8 chars
Diffstat (limited to 'src/utf8.h')
-rw-r--r-- | src/utf8.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,8 +6,8 @@ void utf8proc_case_fold(strbuf *dest, const uint8_t *str, int len); void utf8proc_encode_char(int32_t uc, strbuf *buf); -ssize_t utf8proc_iterate(const uint8_t *str, ssize_t str_len, int32_t *dst); -ssize_t utf8proc_charlen(const uint8_t *str, ssize_t str_len); +int utf8proc_iterate(const uint8_t *str, int str_len, int32_t *dst); +int utf8proc_charlen(const uint8_t *str, int str_len); void utf8proc_detab(strbuf *dest, const uint8_t *line, size_t size); #endif |