luau/Require
Varun Saini d9aa88e772
Fix crash when require is called from root VM stack (#1788)
Copied from #1785:
> If require is called from the root interpreter stack (e.g. using C
API) then lua_getinfo call will not succeed, leaving garbage in
lua_Debug ar struct.
> Accessing later ar.source as null-terminated string is unsafe and can
cause a crash.
> 
> This PR adds a check to ensure that lua_getinfo call is successful.

Co-authored-by: Alex Orlenko <zxteam@protonmail.com>
2025-04-28 11:15:43 -07:00
..
Navigator Sync to upstream/release/671 (#1787) 2025-04-25 14:19:27 -07:00
Runtime Fix crash when require is called from root VM stack (#1788) 2025-04-28 11:15:43 -07:00