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

fixed shell-escape bypass (thanks to tex@maxchernoff.ca)

parent d253705c
No related branches found
No related tags found
No related merge requests found
2025-02-05 Luigi Scarso <luigi.scarso@gmail.com>
* fixed shell-escape bypass (thanks to tex@maxchernoff.ca)
2025-02-05 Luigi Scarso <luigi.scarso@gmail.com>
* add mathemptydisplaymode primitive,
* fix nodes leak in end_graf (thanks to udifoglle@gmail.com)
......
......@@ -733,6 +733,11 @@ static int luatex_kpse_clua_find(lua_State * L)
{
const char *filename;
const char *name;
if (!clua_loader_function) {
/*tex library not found in this path */
lua_pushliteral(L, "\n\t[C searcher requires unrestricted shell escape]");
return 1;
}
if (safer_option) {
/*tex library not found in this path */
lua_pushliteral(L, "\n\t[C searcher disabled in safer mode]");
......@@ -1240,6 +1245,9 @@ void lua_initialize(int ac, char **av)
/* the lua debug library is enabled if shell escape permits everything */
if (shellenabledp && restrictedshell != 1) {
luadebug_option = 1 ;
} else {
luaL_unref(Luas, LUA_REGISTRYINDEX, clua_loader_function);
clua_loader_function = 0;
}
/*tex Here we load luatex-core.lua which takes care of some protection on demand. */
if (load_luatex_core_lua(Luas)) {
......
#ifndef luatex_svn_revision_h
#define luatex_svn_revision_h
#define luatex_svn_revision 7659
#define luatex_svn_revision 7660
#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