aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Maps/MapManager.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2013-12-14 16:40:04 +0100
committerjackpoz <giacomopoz@gmail.com>2013-12-14 16:51:47 +0100
commite28cc4660b9ea67dc4614899f6ffc844bbefce8a (patch)
tree63906663923741af4e03189fef68ad495192bfe5 /src/server/game/Maps/MapManager.cpp
parent9d9d1fb6c68137c9bab839a04a1f40d16114dd6e (diff)
Core/Movement: Fix invalid memory access
Fix the stack implementation used in MotionMaster and added few sanity checks to ensure no underflows will be made. Valgrind log: Invalid read of size 8 at : MotionMaster::top() const (MotionMaster.h:115) by : MotionMaster::pop() (MotionMaster.h:91) by : MotionMaster::~MotionMaster() (MotionMaster.cpp:74) by : Unit::~Unit() (Unit.cpp:296) by : Player::~Player() (Player.cpp:880) by : WorldSession::HandleCharCreateCallback(Trinity::AutoPtr<PreparedResultSet, ACE_Thread_Mutex>, CharacterCreateInfo*) (CharacterHandler.cpp:665) by : WorldSession::HandleCharCreateCallback(Trinity::AutoPtr<PreparedResultSet, ACE_Thread_Mutex>, CharacterCreateInfo*) (CharacterHandler.cpp:516)
Diffstat (limited to 'src/server/game/Maps/MapManager.cpp')
0 files changed, 0 insertions, 0 deletions