luau/VM
XmiliaH 4ded555cc5
Prevent overflow in lua_newuserdatadtor (#639)
In case a large userdata size is passed to lua_newuserdatadtor it might overflow the size resulting in luaU_newudata actually allocating the object without a memory error. This will then result in overwriting part of the metatable pointer of the userdata.
This PR fixes this issue by checking for the overflow and in such cases pass a size value which will cause a memory error in luaU_newudata.
2022-08-16 15:32:48 -07:00
..
include Sync to upstream/release/539 (#625) 2022-08-04 15:35:33 -07:00
src Prevent overflow in lua_newuserdatadtor (#639) 2022-08-16 15:32:48 -07:00