In the following example the upvalue b is not closed on the continue statement leading to UB and a crash.
local tmp
local function c()
if tmp then
tmp()
error('')
end
return 1
end
while c() do
local b = 2
::x::
if tmp then continue end
tmp = ||->do b=nil end
goto x
end
In the following example the upvalue
b
is not closed on thecontinue
statement leading to UB and a crash.