Fix out of bounds access in anongame_gameresult_parse() when passing 'hero->level' to bn_int_get() instead of bn_short_get()
This commit is contained in:
parent
379a8d76b7
commit
71afce3904
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ namespace pvpgn
|
|||
{
|
||||
hero = (t_client_w3route_gameresult_hero *)packet_get_raw_data_const(packet, offset);
|
||||
|
||||
gameresult->heroes[counter].level = bn_int_get(hero->level);
|
||||
gameresult->heroes[counter].level = bn_short_get(hero->level);
|
||||
gameresult->heroes[counter].race_and_name = bn_int_get(hero->race_and_name);
|
||||
gameresult->heroes[counter].hero_xp = bn_int_get(hero->hero_xp);
|
||||
|
||||
|
|
Loading…
Reference in a new issue