]> source.dussan.org Git - rspamd.git/commit
[Fix] Use correct type for keylen in lua_ucl_newindex 5169/head
authorPetr Vaněk <arkamar@atlas.cz>
Wed, 2 Oct 2024 13:01:07 +0000 (15:01 +0200)
committerPetr Vaněk <arkamar@atlas.cz>
Wed, 2 Oct 2024 13:17:42 +0000 (15:17 +0200)
commit3041484f859f3d8cc2275c5189280c31ff3ffeda
treec8a7370e652a9a89397d2aa6443a6ca26c2fffb5
parentda5fa7ec0d65e6cdcd6211c6b4dc87c467eef354
[Fix] Use correct type for keylen in lua_ucl_newindex

The keylen variable used in lua_ucl_newindex function should use size_t
type instead of lua_Integer, because all functions that use keylen
expect it to be of size_t type. This mismatch leads to incompatible
pointer types, and modern versions of GCC fail to compile the code.

Fixes: 9e87597ceb05 ("[Project] Allow manipulations with opaque UCL objects")
Issue: https://github.com/rspamd/rspamd/issues/5163
contrib/libucl/lua_ucl.c