diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/fastutf8/fastutf8.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/fastutf8/fastutf8.c b/contrib/fastutf8/fastutf8.c index 4a8d3309b..2a5a9983c 100644 --- a/contrib/fastutf8/fastutf8.c +++ b/contrib/fastutf8/fastutf8.c @@ -154,5 +154,7 @@ rspamd_fast_utf8_library_init (unsigned flags) off_t rspamd_fast_utf8_validate (const unsigned char *data, size_t len) { - return validate_func (data, len); + return len >= 64 ? + validate_func (data, len) : + rspamd_fast_utf8_validate_ref (data, len); }
\ No newline at end of file |