Duel Zone Crashes
Pointers are not checked and people can send in bogus data. I added in bold what needs to be changed.
client_packet.cpp Old Section: Code:
Entity* entity = entity_list.GetID(ds->target_id); Code:
void Client::Handle_OP_DuelResponse(const EQApplicationPacket *app) |
RequestDuel
This function required more of a rewrite
New Code: Code:
void Client::Handle_OP_RequestDuel(const EQApplicationPacket *app) Code:
void Client::Handle_OP_RequestDuel(const EQApplicationPacket *app) |
the RequestDuel should have safe_delete(outapp); on its returns too - forgot that they originally copied the packet instead of using it.
|
All times are GMT -4. The time now is 09:25 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.