Fix heap-use-after-free when attacking monster with potion
Attacking a monster which has a passive attack (e.g. a red mold) with a wielded potion that breaks during the attack, the variable weapon would not be correctly reset and passive() would be called with the pointer to the freed object.
This commit is contained in:
@@ -568,6 +568,7 @@ deal with gold leaving a shop via scatter()
|
||||
defer encumbrance check during polymorph to new man; newman() -> redist_attr()
|
||||
-> encumber_msg() could report change in encumbrance that immediately
|
||||
became obsolete if polyman() subsequently restored old attributes
|
||||
fix heap-use-after-free when attacking monster with potion
|
||||
|
||||
|
||||
Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
|
||||
|
||||
Reference in New Issue
Block a user