minetest/src/script/lua_api
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
..
CMakeLists.txt Remove dependency on marshal and many other async changes 2014-04-27 16:15:53 -04:00
l_base.cpp Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
l_base.h Remove lua_State parameter from LuaError::LuaError 2014-03-15 16:28:59 -04:00
l_craft.cpp Remove lua_State parameter from LuaError::LuaError 2014-03-15 16:28:59 -04:00
l_craft.h Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
l_env.cpp Fix seg fault if popping from empty stack (L-system trees) 2014-08-23 06:40:27 +02:00
l_env.h Mod profiling support 2014-08-19 22:22:57 +02:00
l_internal.h Fix modstore/favourites hang by adding asynchronous lua job support 2013-11-29 22:09:14 +01:00
l_inventory.cpp Clear inventory before setting lists 2014-06-23 15:28:48 -04:00
l_inventory.h Use "core" namespace internally 2014-05-08 13:02:04 -04:00
l_item.cpp Use "core" namespace internally 2014-05-08 13:02:04 -04:00
l_item.h Use "core" namespace internally 2014-05-08 13:02:04 -04:00
l_mainmenu.cpp Add video driver selection to settings menu (based uppon idea from webdesigner97) 2014-08-23 01:55:54 +02:00
l_mainmenu.h Add video driver selection to settings menu (based uppon idea from webdesigner97) 2014-08-23 01:55:54 +02:00
l_mapgen.cpp Use "core" namespace internally 2014-05-08 13:02:04 -04:00
l_mapgen.h Use "core" namespace internally 2014-05-08 13:02:04 -04:00
l_nodemeta.cpp Fixed potential NULL pointer and leak when setting node metadata 2013-11-29 23:35:16 -05:00
l_nodemeta.h Fixed potential NULL pointer and leak when setting node metadata 2013-11-29 23:35:16 -05:00
l_nodetimer.cpp Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
l_nodetimer.h Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
l_noise.cpp Remove lua_State parameter from LuaError::LuaError 2014-03-15 16:28:59 -04:00
l_noise.h Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
l_object.cpp Small cleanup of hud add/remove code 2014-05-31 22:32:44 +02:00
l_object.h Fix heart + bubble bar size on different texture packs 2014-05-07 21:46:27 +02:00
l_particles.cpp Add proper lua api deprecated handling 2014-04-29 22:49:04 +02:00
l_particles.h Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu 2013-08-14 21:03:33 +02:00
l_rollback.cpp Optimize table creation 2013-11-30 13:05:13 -05:00
l_rollback.h Rollback fixes and get_node_actions 2013-11-27 18:13:06 -05:00
l_server.cpp Use "core" namespace internally 2014-05-08 13:02:04 -04:00
l_server.h Cleanup client init states by bumping protocol version 2014-04-08 21:12:20 +02:00
l_settings.cpp Add Settings interface for Lua 2013-09-10 18:31:38 +02:00
l_settings.h Add Settings interface for Lua 2013-09-10 18:31:38 +02:00
l_util.cpp Make print() NUL-safe 2014-05-15 19:09:47 -04:00
l_util.h Use "core" namespace internally 2014-05-08 13:02:04 -04:00
l_vmanip.cpp Fix issue 1527 2014-07-29 22:39:39 -04:00
l_vmanip.h LuaVoxelManip: Add get_param2_data and set_param2_data 2014-01-19 02:55:59 -05:00