mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
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> |
||
---|---|---|
.. | ||
Navigator | ||
Runtime |