diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-30 11:24:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-09-30 11:24:42 +0100 |
commit | d8e02ef4120e5301f96595a4a4f4de533e0d2f72 (patch) | |
tree | dc5b490fd823c2a2033255c3ea6dc1e3fb3fefcd /src/rspamadm | |
parent | 98080882fd1c67c6640cbe20799ceb17b17cda64 (diff) | |
download | rspamd-d8e02ef4120e5301f96595a4a4f4de533e0d2f72.tar.gz rspamd-d8e02ef4120e5301f96595a4a4f4de533e0d2f72.zip |
[Minor] Small OOB access fixed
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/lua_repl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |