diff options
author | Craig Robbins <kde.psych@gmail.com> | 2014-08-07 15:39:12 +1000 |
---|---|---|
committer | RealBadAngel <maciej.kasatkin@o2.pl> | 2014-08-23 06:40:27 +0200 |
commit | f33d31693ed2ab7d2a29320181b6aba2c12f76d3 (patch) | |
tree | b440bfeb24c4beddd5a73ea7ab4f9c4452733a39 /builtin/mainmenu/tab_settings.lua | |
parent | 996ea60642c5d78fc915573af0641d78bc7e2d49 (diff) | |
download | minetest-f33d31693ed2ab7d2a29320181b6aba2c12f76d3.tar.gz minetest-f33d31693ed2ab7d2a29320181b6aba2c12f76d3.tar.bz2 minetest-f33d31693ed2ab7d2a29320181b6aba2c12f76d3.zip |
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
Diffstat (limited to 'builtin/mainmenu/tab_settings.lua')
0 files changed, 0 insertions, 0 deletions