Skip to content
Snippets Groups Projects
Commit 483a13e6 authored by Luigi Scarso's avatar Luigi Scarso
Browse files

Ensured that load_hyphenation has enough Lua stack, and pops the latest table...

Ensured that load_hyphenation has enough Lua stack, and pops the latest table pushed in (Michal Vlasák).
parent afe57355
No related branches found
No related tags found
No related merge requests found
2022-11-20 Luigi Scarso <luigi.scarso@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@gmail.com>
* Better error message if setlocale fails
......
......@@ -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)
......
#ifndef luatex_svn_revision_h
#define luatex_svn_revision_h
#define luatex_svn_revision 7548
#define luatex_svn_revision 7549
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment