luau-lang / luau

A fast, small, safe, gradually typed embeddable scripting language derived from Lua
https://luau-lang.org
MIT License
3.79k stars 349 forks source link

Check bytecode version before writing type information #1249

Closed luau-load closed 1 month ago

luau-load commented 1 month ago

When setting LBC_VERSION_TARGET to 3, the bytecode builder will still write type information, resulting in undefined behavior in luau_load, due to it actually checking the version before reading type information.

vegorov-rbx commented 1 month ago

Our target is now version 5 and we do not support writing older versions.