q66 / cffi-lua

A portable C FFI for Lua 5.1+
MIT License
181 stars 24 forks source link

get rid of malloc and abort usage #20

Closed q66 closed 1 year ago

q66 commented 4 years ago

All allocations in the system should be done through Lua's allocator. Also, we should never abort, instead access to lua_State state should be ensured at all times in those contexts and a Lua error should be raised.

q66 commented 1 year ago

getting rid of malloc turned out to be not really doable/practical and using lua's allocator has caveats, so closing this