AA fixes for PEQ's reported crash

This commit is contained in:
SecretsOTheP 2013-11-23 21:42:22 -05:00
parent 1c07ae9172
commit 51181c8c8b
2 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,10 @@
EQEMu Changelog (Started on Sept 24, 2003 15:50)
-------------------------------------------------------
== 11/23/2013 ==
Secrets: Fixed an issue related to a zone crash where the count of the abilities in an AA was 0, leading to a size 0 buffer issue.
== 11/19/2013 ==
Secrets: Fixed an issue with two zone crashes reported on PEQ related to the buff restrictions code and AAs.
demonstar55: Partially make use of dot_stacking_exempt (case when it's 1 is implemented, -1 case isn't)
== 11/18/2013 ==

View File

@ -1300,6 +1300,10 @@ void Client::SendAA(uint32 id, int seq) {
return;
int size=sizeof(SendAA_Struct)+sizeof(AA_Ability)*saa2->total_abilities;
if(size == 0)
return;
uchar* buffer = new uchar[size];
SendAA_Struct* saa=(SendAA_Struct*)buffer;
memcpy(saa,saa2,size);