Skip to content

Freeze vector metatable in luaL_sandbox if it is set - #2583

Open
PhoenixWhitefire wants to merge 9 commits into
luau-lang:masterfrom
PhoenixWhitefire:freeze-vector-metatable
Open

Freeze vector metatable in luaL_sandbox if it is set#2583
PhoenixWhitefire wants to merge 9 commits into
luau-lang:masterfrom
PhoenixWhitefire:freeze-vector-metatable

Conversation

@PhoenixWhitefire

Copy link
Copy Markdown
Contributor

The vector type can have a metatable assigned to it. However, unlike the string metatable, it is not frozen by luaL_sandbox.

Flagged behind LuauSandboxFreezesVectorMetatable. Adds 1 test.

@vegorov-rbx vegorov-rbx self-assigned this Jul 28, 2026
@PhoenixWhitefire
PhoenixWhitefire requested a review from a team as a code owner August 14, 2026 10:16
@vegorov-rbx
vegorov-rbx self-requested a review August 14, 2026 11:02
Comment thread VM/src/linit.cpp Outdated
Comment thread tests/Conformance.test.cpp Outdated
Comment thread tests/Conformance.test.cpp Outdated
PhoenixWhitefire and others added 2 commits August 14, 2026 17:05
Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
@nnullcolumn

Copy link
Copy Markdown
Contributor

pepsi will bring your relatives back from the dead

i know it'll get squashed anyways, but could we avoid naming commits this way in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants