Commit 1e736ab
committed
Fix: potential use-after-free when monster threw lit oil
Specifically at melee range, and when the monster was carrying more oil
that could ignite and explode. The code previously assumed that if there
was more than 1 oil in the stack to throw that it would definitely still
be around after the explosion to read the memory contents of, which was
not true.
Another ASan catch.1 parent fb8830f commit 1e736ab
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1716 | 1716 | | |
1717 | 1717 | | |
1718 | 1718 | | |
1719 | | - | |
| 1719 | + | |
1720 | 1720 | | |
1721 | 1721 | | |
1722 | 1722 | | |
| |||
1730 | 1730 | | |
1731 | 1731 | | |
1732 | 1732 | | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
1736 | 1745 | | |
1737 | 1746 | | |
1738 | 1747 | | |
| |||
0 commit comments