]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add workaround for old libicu (bug in libicu)
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 8 Jan 2020 13:28:00 +0000 (13:28 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 8 Jan 2020 13:28:00 +0000 (13:28 +0000)
src/lua/lua_util.c

index ae1a020a131987954cb8bb0151acd71854d10582..0b52cfbdc17818d658efc7466bba6cf04cce81cc 100644 (file)
@@ -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");