1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-15 22:05:07 -05:00
minetest/src/script
Craig Robbins f33d31693e Fix seg fault if popping from empty stack (L-system trees)
See: https://github.com/minetest/minetest/issues/1525

Background
Wuzzy2: If you attempt to spawn a L-system tree with minetest.spawn_tree, you can make Minetest crash if it is attempted to pop an empty stack.

ShadowNinja: This shouldn't cause a segmentation fault, but it should throw a Lua error

Commit Description
This commit throws a Lua error instead of causing a segmentation fault. The server will still "crash" but will include a Lua backtrace.

L-Systems fix randomness
Unless a random seed is provided (via Lua treedef) seed the PRNG with a different seed for each tree
Resolves: https://github.com/minetest/minetest/issues/1469

Fix l-system crash when treedef random_level not set by Lua
2014-08-23 06:40:27 +02:00
..
common Use "core" namespace internally 2014-05-08 13:02:04 -04:00
cpp_api Don't call a player event without having player to do a event for 2014-08-21 17:29:26 +02:00
lua_api Fix seg fault if popping from empty stack (L-system trees) 2014-08-23 06:40:27 +02:00
CMakeLists.txt Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
scripting_game.cpp Use "core" namespace internally 2014-05-08 13:02:04 -04:00
scripting_game.h Add proper lua api deprecated handling 2014-04-29 22:49:04 +02:00
scripting_mainmenu.cpp Use "core" namespace internally 2014-05-08 13:02:04 -04:00
scripting_mainmenu.h Fix code style of async API 2014-04-27 16:15:53 -04:00