From: Vsevolod Stakhov Date: Mon, 30 Sep 2019 10:24:42 +0000 (+0100) Subject: [Minor] Small OOB access fixed X-Git-Tag: 2.0~96 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d8e02ef4120e5301f96595a4a4f4de533e0d2f72;p=rspamd.git [Minor] Small OOB access fixed --- diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c index 17061929a..b7fd9a4d3 100644 --- a/src/rspamadm/lua_repl.c +++ b/src/rspamadm/lua_repl.c @@ -281,7 +281,7 @@ rspamadm_exec_input (lua_State *L, const gchar *input) rspamd_printf ("local function: %d\n", cbref); } else { memset (&tr, 0, sizeof (tr)); - lua_logger_out_type (L, i, outbuf, sizeof (outbuf), &tr, + lua_logger_out_type (L, i, outbuf, sizeof (outbuf) - 1, &tr, LUA_ESCAPE_UNPRINTABLE); rspamd_printf ("%s\n", outbuf); }