]> granicus.if.org Git - nethack/commit
Fix findtravelpath buffer overflow
authorPasi Kallinen <paxed@alt.org>
Mon, 21 Dec 2015 16:18:28 +0000 (18:18 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 21 Dec 2015 16:18:40 +0000 (18:18 +0200)
commit4b876b1aec1522bccf301901d03fb239c77662f1
tree25bb6b67b847d4ff8fa456134b21b8be6c10c334
parent9a2eb370e70482d13e9a9de5b4561b5c3e509a69
Fix findtravelpath buffer overflow

Test case: Bigroom, full of boulders, with a single
path from travel start to travel end. Boulders (and
doors) are added to the travelstep[xy] arrays multiple
times, and will overflow the arrays.

Original patch via Acehack by Alex Smith
src/hack.c