Skip to content

Instantly share code, notes, and snippets.

@starius
Last active August 29, 2015 14:21
Show Gist options
  • Save starius/3dad87a00e0faf04f3a6 to your computer and use it in GitHub Desktop.
Save starius/3dad87a00e0faf04f3a6 to your computer and use it in GitHub Desktop.
LuaJIT segfault 4a146cac9a00f5a1a7877db847ff5b
function badFunction(t)
t.__metatable = nil
local b = assert(t.field)
end
code = string.rep([[
(function()
badFunction {
field={
aaaaa={}
}
}
end)();
]], 1000)
bs = loadstring(code)()
bs = loadstring(code)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment