You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CRpgRocket could potentially access freed memory under specific circumstances.
If a player launches a rocket using an rpg, and is then stripped of all weapons, that rpg is removed altogether. The rocket will access the rpg when it hits a target to update its rocket counter. Depending on heap allocation behavior the now freed region could still be valid to access.
To fix this, the rpg rocket's pointer to the rpg needs to be changed into an EHANDLE.
CRpgRocket could potentially access freed memory under specific circumstances.
If a player launches a rocket using an rpg, and is then stripped of all weapons, that rpg is removed altogether. The rocket will access the rpg when it hits a target to update its rocket counter. Depending on heap allocation behavior the now freed region could still be valid to access.
To fix this, the rpg rocket's pointer to the rpg needs to be changed into an EHANDLE.
Line that needs to be changed:
halflife/dlls/weapons.h
Line 743 in 5d76170
The text was updated successfully, but these errors were encountered: