diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2017-10-10 00:47:37 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2018-06-03 17:31:59 +0200 |
commit | 9dc1f2d638ddde253fbfac26c856b5da4ea1495f (patch) | |
tree | cec9adcf9aebcdd99079f0d543ece6723bda7a90 /builtin/profiler | |
parent | d215198fe8dd9f19e8dc815bdf13989520318758 (diff) | |
download | minetest-9dc1f2d638ddde253fbfac26c856b5da4ea1495f.tar.gz minetest-9dc1f2d638ddde253fbfac26c856b5da4ea1495f.tar.bz2 minetest-9dc1f2d638ddde253fbfac26c856b5da4ea1495f.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 'builtin/profiler')
0 files changed, 0 insertions, 0 deletions