]> granicus.if.org Git - nethack/commit
fix github issue #955 - tile2bmp bounds failure
authorPatR <rankin@nethack.org>
Thu, 12 Jan 2023 11:12:56 +0000 (03:12 -0800)
committerPatR <rankin@nethack.org>
Thu, 12 Jan 2023 11:12:56 +0000 (03:12 -0800)
commita7756a132713e86ea0149ba620d5c8f8b1613c8f
tree604f632c5c5691780a0783c1064c2ab00422e68d
parent9bf6d837adddf12021ed5d044a60f7f39e642b11
fix github issue #955 - tile2bmp bounds failure

Issue reported by argrath:  building with 'address sanitizing'
reported tile2bmp writing out of array bounds after the addition
of the generic object tiles.

'MAGICTILENO' in tile2bmp.c is extremely fragile.  It was already
inaccurate before the generic tiles, but had a big enough value to
handle the final row of tiles prior to that.

Fixes #955
win/share/monsters.txt
win/share/objects.txt
win/share/other.txt
win/share/tile2bmp.c