Last active
August 29, 2015 14:21
-
-
Save starius/3dad87a00e0faf04f3a6 to your computer and use it in GitHub Desktop.
LuaJIT segfault 4a146cac9a00f5a1a7877db847ff5b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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