aboutsummaryrefslogtreecommitdiff
path: root/src/threading/thread.cpp
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2017-10-10 00:47:37 +0200
committerLoic Blot <loic.blot@unix-experience.fr>2017-10-10 00:47:46 +0200
commit9d295906efc7eec58dba3f7494f4e444d2c8d00f (patch)
tree1d8f4df5dfb0df03271c3b06482f126abbba7aab /src/threading/thread.cpp
parent0c9ca27ffce7d53ede74bd6ccbf590d1cbe94b7b (diff)
downloadminetest-9d295906efc7eec58dba3f7494f4e444d2c8d00f.tar.gz
minetest-9d295906efc7eec58dba3f7494f4e444d2c8d00f.tar.bz2
minetest-9d295906efc7eec58dba3f7494f4e444d2c8d00f.zip
NetworkPacket::putRawPacket: resize m_data to datasize + memcpy
In some cases NetworkPacket was created using default constructor and m_data is not properly sized. This fixed out of bounds memory copy Also use memcpy instead of std::vector affectation to enhance packet creation
Diffstat (limited to 'src/threading/thread.cpp')
0 files changed, 0 insertions, 0 deletions