jmckaskill / luaffi

Standalone FFI library for calling C functions from lua. Compatible with the luajit FFI interface.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't set a pointer member to a struct that's about to be freed

petercolberg opened this issue · comments

The following test case fails with Lua 5.2 and lua-ffi abc638c on Linux x86_64.

local ffi = require("ffi")
ffi.new("int8_t[3][2]", {{11, 1}, {19, 1}, {19, 3}}) --> Can't set a pointer member to a struct that's about to be freed