mlua-rs / rlua

High level Lua bindings to Rust
Other
1.73k stars 115 forks source link

Fix #281: Crash on empty source #284

Closed jugglerchris closed 1 year ago

jugglerchris commented 1 year ago

The Lua 5.1 loadbufferx wrapper was not pushing an error onto the stack as expected when validating the text/binary mode, leading to an assertion when that happened - this would have affected empty sources or source/compiled modules when that mode was not enabled.