aboutsummaryrefslogtreecommitdiff
path: root/src/unittest/test_voxelalgorithms.cpp
diff options
context:
space:
mode:
authorEkdohibs <nathanael.courant@laposte.net>2016-04-21 10:45:42 +0200
committerparamat <mat.gregory@virginmedia.com>2016-04-21 10:15:17 +0100
commitc350cfb50b3bf81c075a80307adb15393ea773d0 (patch)
tree141921a19662a79cc3943d730f87c413e6c9c6eb /src/unittest/test_voxelalgorithms.cpp
parent5c32c5e945275c612c10021bbd2117a73a97fc3f (diff)
downloadminetest-c350cfb50b3bf81c075a80307adb15393ea773d0.tar.gz
minetest-c350cfb50b3bf81c075a80307adb15393ea773d0.tar.bz2
minetest-c350cfb50b3bf81c075a80307adb15393ea773d0.zip
Make logging use a fixed-length buffer to avoid race conditions.
Previously, race conditions occurred inside logging, that caused segfaults because a thread was trying to use an old pointer that was freed when the string was reallocated. Using a fixed-length buffer avoids this, at the cost of cutting too long messages over seveal lines.
Diffstat (limited to 'src/unittest/test_voxelalgorithms.cpp')
0 files changed, 0 insertions, 0 deletions