From 1be299f4f1f78ab2f53834f4240275a028383df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Tue, 16 Jun 2020 21:15:23 +0200 Subject: [PATCH] Fix infinite loop in luaotfload --- luametalatex-node-luaotfload.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luametalatex-node-luaotfload.lua b/luametalatex-node-luaotfload.lua index 39e5453..0900f09 100644 --- a/luametalatex-node-luaotfload.lua +++ b/luametalatex-node-luaotfload.lua @@ -1,4 +1,4 @@ --- Provide enough compatibility function to make luaotfload happy +-- Provide enough compatibility functions to make luaotfload happy local properties = node.direct.get_properties_table() local flush = node.direct.flush_list @@ -17,7 +17,7 @@ function node.direct.setcomponents(n, comp) properties[n] = props return end - local props_comp = props.components + local props_comp = rawget(props, 'components') if props_comp then props_comp.components = comp -- Important even if nil to avoid double-free if not comp then props.components = nil end