commit d8e02ef: [Minor] Small OOB access fixed

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Sep 30 11:49:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-09-30 11:24:42 +0100
URL: https://github.com/rspamd/rspamd/commit/d8e02ef4120e5301f96595a4a4f4de533e0d2f72

[Minor] Small OOB access fixed

---
 src/rspamadm/lua_repl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 			}


More information about the Commits mailing list