texlive[65060] Build/source/texk/web2c/luatexdir: Ensured that

commits+lscarso at tug.org commits+lscarso at tug.org
Sun Nov 20 22:17:16 CET 2022


Revision: 65060
          http://tug.org/svn/texlive?view=revision&revision=65060
Author:   lscarso
Date:     2022-11-20 22:17:16 +0100 (Sun, 20 Nov 2022)
Log Message:
-----------
Ensured that load_hyphenation has enough Lua stack, and pops the latest table pushed in (Michal Vlasak).

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/luatexdir/ChangeLog
    trunk/Build/source/texk/web2c/luatexdir/lang/texlang.c
    trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h

Modified: trunk/Build/source/texk/web2c/luatexdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/ChangeLog	2022-11-20 15:09:44 UTC (rev 65059)
+++ trunk/Build/source/texk/web2c/luatexdir/ChangeLog	2022-11-20 21:17:16 UTC (rev 65060)
@@ -1,3 +1,6 @@
+2022-11-20  Luigi Scarso <luigi.scarso at gmail.com> 
+    * Ensured that load_hyphenation has enough Lua stack, and pops the latest table pushed in (Michal Vlasák).
+
 2022-11-10  Luigi Scarso <luigi.scarso at gmail.com> 
     * Better error message if setlocale fails
 

Modified: trunk/Build/source/texk/web2c/luatexdir/lang/texlang.c
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/lang/texlang.c	2022-11-20 15:09:44 UTC (rev 65059)
+++ trunk/Build/source/texk/web2c/luatexdir/lang/texlang.c	2022-11-20 21:17:16 UTC (rev 65060)
@@ -287,6 +287,7 @@
     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 @@
             }
         }
     }
+    lua_pop(Luas, 1);
 }
 
 void clear_hyphenation(struct tex_language *lang)

Modified: trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h
===================================================================
--- trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h	2022-11-20 15:09:44 UTC (rev 65059)
+++ trunk/Build/source/texk/web2c/luatexdir/luatex_svnversion.h	2022-11-20 21:17:16 UTC (rev 65060)
@@ -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



More information about the tex-live-commits mailing list.