From 5e95b245d091d2f4623217354c58874381351579 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 24 Jun 2024 17:32:42 +0200 Subject: [PATCH] lua: apply patch for "Chunk with too many lines may crash Lua" --- lib/lua/src/llex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lua/src/llex.c b/lib/lua/src/llex.c index d1b179670..5affe7c16 100644 --- a/lib/lua/src/llex.c +++ b/lib/lua/src/llex.c @@ -133,7 +133,7 @@ static void inclinenumber (LexState *ls) { if (currIsNewline(ls) && ls->current != old) next(ls); /* skip `\n\r' or `\r\n' */ if (++ls->linenumber >= MAX_INT) - luaX_syntaxerror(ls, "chunk has too many lines"); + luaX_lexerror(ls, "chunk has too many lines", 0); }