]> granicus.if.org Git - nethack/commit
fix #H6285 - flooreffects and deltrap panic
authorPatR <rankin@nethack.org>
Wed, 16 Jan 2019 23:08:11 +0000 (15:08 -0800)
committerPatR <rankin@nethack.org>
Wed, 16 Jan 2019 23:08:11 +0000 (15:08 -0800)
commitb9f38fdd14bc0b49904a6e85869633ba8656ca22
treea0613731a2795a0ce67901a106cef20c6895fc40
parent521dbe8f9445678473a7d1d0bd3d665fc3f1dba1
fix #H6285 - flooreffects and deltrap panic

Reported 14 months ago, a monster reading a scroll of earth which
dropped a boulder that killed another monster in an adjacent pit
was giving credit/blame to the hero and could also trigger a panic.
If the monster was killed, the pit would be filled and deleted via
m_detach and then when flooreffects tried to delete the same trap,
it accessed freed memory and deltrap could panic.
doc/fixes36.2
src/do.c
src/uhitm.c