• Sources: primary
  • Summary: Luau 0.746 adds a while local form that binds a variable inside the loop condition. The runtime now salts the hash of the string interning table when lua_setpointerencodekey is called, so crafted sets of strings cannot slow string operations, and it fixes a luau_load crash when embedders expose GC controls. Native code generation now gathers type tags and userdata types at runtime to specialize arithmetic, field access and namecalls on recompilation.
  • Why it matters: Embedders that run untrusted Luau scripts get a defense against hash-flooding slowdowns by calling lua_setpointerencodekey.
  • Background: Luau is a Lua 5.1-derived language from Roblox with gradual typing, a faster interpreter and an optional native code generator, and it is embedded in games and other hosts. Lua interns every string in a global hash table, so an attacker who can choose many strings that collide in that hash can make string creation slow, the same class of hash-flooding attack seen in web frameworks. Salting the hash with a secret value makes the colliding inputs unpredictable.