From ff921758941a3dc2c148ab72a5b051c5d84bfa25 Mon Sep 17 00:00:00 2001 From: Luigi Scarso Date: Sun, 20 Nov 2022 21:17:16 +0000 Subject: Ensured that load_hyphenation has enough Lua stack, and pops the latest table pushed in (Michal Vlasák). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://tug.org/texlive/trunk@65060 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/luatexdir/ChangeLog | 3 +++ Build/source/texk/web2c/luatexdir/lang/texlang.c | 2 ++ Build/source/texk/web2c/luatexdir/luatex_svnversion.h | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'Build/source/texk') diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index d8b6a5d5de6..bde59eddcf8 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,6 @@ +2022-11-20 Luigi Scarso + * Ensured that load_hyphenation has enough Lua stack, and pops the latest table pushed in (Michal Vlasák). + 2022-11-10 Luigi Scarso * Better error message if setlocale fails diff --git a/Build/source/texk/web2c/luatexdir/lang/texlang.c b/Build/source/texk/web2c/luatexdir/lang/texlang.c index a0d067251b0..f8c60e548de 100644 --- a/Build/source/texk/web2c/luatexdir/lang/texlang.c +++ b/Build/source/texk/web2c/luatexdir/lang/texlang.c @@ -287,6 +287,7 @@ void load_hyphenation(struct tex_language *lang, const unsigned char *buff) int id ; if (lang == NULL) return; + lua_checkstack(Luas, 3); if (lang->exceptions == 0) { lua_newtable(Luas); lang->exceptions = luaL_ref(Luas, LUA_REGISTRYINDEX); @@ -314,6 +315,7 @@ void load_hyphenation(struct tex_language *lang, const unsigned char *buff) } } } + lua_pop(Luas, 1); } void clear_hyphenation(struct tex_language *lang) diff --git a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h index 2630418c80c..cc26f5a97c8 100644 --- a/Build/source/texk/web2c/luatexdir/luatex_svnversion.h +++ b/Build/source/texk/web2c/luatexdir/luatex_svnversion.h @@ -1,4 +1,4 @@ #ifndef luatex_svn_revision_h #define luatex_svn_revision_h -#define luatex_svn_revision 7548 +#define luatex_svn_revision 7549 #endif -- cgit v1.2.3