From: Vsevolod Stakhov Date: Wed, 2 May 2018 18:04:21 +0000 (+0100) Subject: [CritFix] Do not use volatile Lua strings as UCL keys X-Git-Tag: 1.7.5~82 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d217fc8880ed3b6902f72022da7d38f324c368a;p=thirdparty%2Frspamd.git [CritFix] Do not use volatile Lua strings as UCL keys Issue: #2211 Closes: #2211 --- diff --git a/contrib/libucl/lua_ucl.c b/contrib/libucl/lua_ucl.c index 045308097f..d2557a57f4 100644 --- a/contrib/libucl/lua_ucl.c +++ b/contrib/libucl/lua_ucl.c @@ -410,8 +410,8 @@ ucl_object_lua_fromtable (lua_State *L, int idx, ucl_string_flags_t flags) DL_FOREACH (obj, cur) { if (cur->keylen == 0) { - cur->keylen = keylen; - cur->key = k; + cur->keylen = obj->keylen; + cur->key = obj->key; } } }