diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-08 13:28:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-01-08 13:28:00 +0000 |
commit | 4ae4107e61fa6eef71b4c84625d1df68849233d4 (patch) | |
tree | baeb110aa4f78af8701f758cdc651e1001642131 /src/lua/lua_util.c | |
parent | 6b8466002ff771897b780111e3b33fdd2bddf4e4 (diff) | |
download | rspamd-4ae4107e61fa6eef71b4c84625d1df68849233d4.tar.gz rspamd-4ae4107e61fa6eef71b4c84625d1df68849233d4.zip |
[Minor] Add workaround for old libicu (bug in libicu)
Diffstat (limited to 'src/lua/lua_util.c')
-rw-r--r-- | src/lua/lua_util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c index ae1a020a1..0b52cfbdc 100644 --- a/src/lua/lua_util.c +++ b/src/lua/lua_util.c @@ -2763,10 +2763,13 @@ lua_util_is_utf_outside_range(lua_State *L) return 1; } - rspamd_lru_hash_insert(validators, creation_hash_key, validator, 0, 0); + rspamd_lru_hash_insert(validators, creation_hash_key, validator, + 0, 0); } - ret = uspoof_checkUTF8 (validator, string_to_check, len_of_string, NULL, &uc_err); + gint32 pos = 0; + ret = uspoof_checkUTF8 (validator, string_to_check, len_of_string, &pos, + &uc_err); } else { return luaL_error (L, "invalid arguments"); |